Created
October 23, 2013 08:11
-
-
Save mediarox/7114504 to your computer and use it in GitHub Desktop.
Force trailing slashes in magento.
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
#RewriteBase /magento/ | |
############################################ | |
## force trailing slashes | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_URI} !.html | |
RewriteCond %{REQUEST_URI} !.php | |
RewriteCond %{QUERY_STRING} !price | |
RewriteCond %{REQUEST_URI} !(.*)/$ | |
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [L,R=301] | |
############################################ | |
## workaround for HTTP authorization | |
## in CGI environment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment