Forum Moderators: phranque

Message Too Old, No Replies

Remove trailing slash from URL using HTACCESS

         

swatej

6:50 am on Jul 8, 2008 (gmt 0)

10+ Year Member



Hello,

I have used following .htaccess Rule.

#"http://domain.com/tag/dentists/fullerton/ca"
RewriteCond %{REQUEST_URI} ^/mojo/tag/(.*)/([A-Za-z-]+)/([A-Za-z]+)
RewriteRule ^(.*)$ ?mysession=YnVzaW5lc3NfU2VhcmNoVGFncw==&tag=%1&buslocation=%2,%3 [NC]

But somehow that url appends trailing slash at the end of the URL. At that time it will not work and redirected to home page.

I have to remove tailing slash from the URL How can I remove it and again use the above code to show the page?

Can anybody help me out from this problem?