Created
November 13, 2018 22:05
-
-
Save ru2fac/2fb511952c7d0cd3ab22082ba325905d 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