Last active
July 16, 2017 18:35
-
-
Save pavlo-bondarchuk/d03b910f7efa21079d79ed93de43bb11 to your computer and use it in GitHub Desktop.
301 редирект ссылок без/ на с/
This file contains hidden or 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
| RewriteEngine on | |
| RewriteBase / | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_URI} !(.html) | |
| RewriteCond %{REQUEST_URI} !(.jpg) | |
| RewriteCond %{REQUEST_URI} !(.*)/$ | |
| RewriteRule ^(.*)$ https://your-site.com/$1/ [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment