Skip to content

Instantly share code, notes, and snippets.

@iso100 iso100/.htaccess
Created May 4, 2013

What would you like to do?
Remove trailing slash from URLs
# Remove Trailing Slash
# ------------------------------
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} (.*)$
RewriteRule ^(.+)/$$1 [R=301,NC,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.