Skip to content

Instantly share code, notes, and snippets.

@chernysh2909
Created August 22, 2017 14:15
Show Gist options
  • Save chernysh2909/d3896977a8c52052981bbec7b0c458ad to your computer and use it in GitHub Desktop.
Save chernysh2909/d3896977a8c52052981bbec7b0c458ad to your computer and use it in GitHub Desktop.
301 редирект со слешем и без него в конце URL
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^(.+)/$ /$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment