Posted By

palimadra on 03/21/12


Tagged

slashes htaccess


Versions (?)

Remove trailing slashes in htaccess


 / Published in: Apache
 

How to remove trailing slashes in URL's using .htaccess.

  1. #get rid of trailing slashes
  2. RewriteCond %{HTTP_HOST} ^(www.)?turbocelica\.lv$ [NC]
  3. RewriteRule ^(.+)/$ http://www.turbocelica.lv/$1 [R=301,L]

Report this snippet  

You need to login to post a comment.