RewriteCond %{HTTP_HOST} ^(www.)?example\.com$ [NC]
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
Open in new window
So i have this in my htaccess file to take care of the trailing slash problem . It redirects you every time you add a trailing slash on a url.
The issue here is the fact there is one directory and all its subdirectoies where it needs the trailing slash or it breaks. How do I add a exception for a directory like
http://www.example.com/com/ and
http:///www.example.com/com/sub/?XXXXX to this rule..
the page thats breaking because of the rewrite looks like this
http:///www.example.com/com/sub/?view=XXXX&layout=XXXXX
thanks