Skip to content

Instantly share code, notes, and snippets.

@jackmcdade
Created July 18, 2012 19:27
Show Gist options
  • Save jackmcdade/3138277 to your computer and use it in GitHub Desktop.
Save jackmcdade/3138277 to your computer and use it in GitHub Desktop.
Add trailing slashes
RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment