Created
June 14, 2020 14:30
-
-
Save RiodeJaneiroo/f66507b061f6eae405be14d5af16bb34 to your computer and use it in GitHub Desktop.
[Редирект без слеша на слеш] #slash #seo #php
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
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_URI} !(.*)/$ | |
RewriteCond %{REQUEST_URI} !^/wp-json | |
RewriteCond %{REQUEST_URI} !.xml$ | |
RewriteRule ^(.*[^/])$ $1/ [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment