I am using the following code to add a trailing slash when users try to access a page and eliminate that last slash: RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ http://www.domain.com/$1/ [L,R=301] Code (markup): The question I have is if I have a page called: http://www.domain.com/page.html This code turns that to: http://www.domain.com/page.html/ How can I get around that?