Skip to content

Instantly share code, notes, and snippets.

@rgergo67
Created September 24, 2016 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgergo67/dea60e619d4ce9208b8ffe2ad3707027 to your computer and use it in GitHub Desktop.
Save rgergo67/dea60e619d4ce9208b8ffe2ad3707027 to your computer and use it in GitHub Desktop.
Htaccess without slash
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.[a-zA-Z0-9]{1,5}|/|#(.*))$
RewriteRule ^(.*)$ /$1/ [R=301,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment