trailing slash failing on firefox

Topics: Developer Forum
Jul 9, 2007 at 1:50 PM
Hi,
I've got the following rule (from your documentation)

RewriteRule ^/(^.?+^.?/)$ /$1/ R,I

This works fine when url's are accessed on opera and IE6&7 but firefox fails with a 'Page cannot be displayed' error. The only way to view the page in firefox is to physically add the trailing slash to the end.

Can anybody shed any light on this?

thanks in advance

alastair

Coordinator
Jul 13, 2007 at 5:33 PM
I cannot really read the rule you included because it is being interpreted as markup.
if you bracket it between double-curly braces, it will be easier to see.

i also don't really understand the problem you're describing. can you tell us what is in the log file for opera and IE, and what is in the logfile for firefox?

Jul 13, 2007 at 7:37 PM
Hi,

The rule is RewriteRule ^/([^.?]+[^.?/])$ /$1/ [I,R=301] taken from the sample URL's.

After a bit more digging using an http proxy between the browser and the server it appears to be caused by a setting on our loadbalancer which must me messing up the 301 response in a way that firefox won't interpret.

I'll post again if i find a solution.

thanks

alastair
Coordinator
Jul 14, 2007 at 12:15 AM
Thanks for the update. Keep us apprised.