Remove trailing slashes in htaccess


/ Published in: Apache
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.