Posted By

fyrebase on 10/12/10


Tagged

htaccess trailing slash


Versions (?)

Force trailing slash


 / Published in: Other
 

  1. # Force trailing slash
  2. RewriteCond %{REQUEST_FILENAME} !-f
  3. RewriteCond %{REQUEST_URI} !(.*)/$
  4. RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [L,R=301]

Report this snippet  

You need to login to post a comment.