Skip to content

Instantly share code, notes, and snippets.

@kvalexandr
Created December 26, 2015 20:42
Show Gist options
  • Save kvalexandr/944c18d041ddfd135f33 to your computer and use it in GitHub Desktop.
Save kvalexandr/944c18d041ddfd135f33 to your computer and use it in GitHub Desktop.
#добавлем в конец url слеш
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.*/[^/\.]+)$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment