Skip to content

Instantly share code, notes, and snippets.

@mediarox
Created October 23, 2013 08:11
Force trailing slashes in magento.
#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