htcilt
08-22-2011, 10:49 AM
I have the following in htaccess to remove trailing slashes:
#RewriteCond %{HTTP_HOST} !^\.example\.com$ [NC]
#RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
This works great, but I now need to add an exception to that rule. I have a folder (lets call it 'myfolder') that needs a trailing slash. Is it possible to ammend the above condition to allow this?
#RewriteCond %{HTTP_HOST} !^\.example\.com$ [NC]
#RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
This works great, but I now need to add an exception to that rule. I have a folder (lets call it 'myfolder') that needs a trailing slash. Is it possible to ammend the above condition to allow this?