Created
November 13, 2018 22:05
-
-
Save ru2fac/2f63bde1322a83aca23d58a66eeab01b to your computer and use it in GitHub Desktop.
301 редирект со страниц без слеша на слеш
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteCond %{REQUEST_URI} !\? | |
RewriteCond %{REQUEST_URI} !\& | |
RewriteCond %{REQUEST_URI} !\= | |
RewriteCond %{REQUEST_URI} !\. | |
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