Posted By

fyrebase on 01/14/11


Tagged

htaccess trailing slash


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

qubestream


Strip trailing slash


 / Published in: Other
 

  1. # Strip trailing slash
  2. RewriteCond %{REQUEST_FILENAME} !-d
  3. RewriteCond %{REQUEST_URI} ^(.+)/$
  4. RewriteRule ^(.+)/$ /$1 [R=301,L]

Report this snippet  

You need to login to post a comment.