Return to Snippet

Revision: 6179
at May 5, 2008 03:25 by cyrilbatillat


Initial Code
RewriteCond %{HTTP_HOST} ^your-domain.com$ [NC]
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]

or, if you have 'www' part in your domain name, add this instead:

RewriteCond %{HTTP_HOST} ^(www.)?your-domain\.com$ [NC]
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]

Initial URL
http://www.learndrupalcms.com/basic-drupal-site-configuration

Initial Description

                                

Initial Title
Remove trailing slash from url

Initial Tags
url, apache

Initial Language
Apache