Redirect works in Internet explorer but not firefox

#1

hi peeps

i'm having a problem with a redirect (i'm trying to force www for my domain)

basically everything is working fine when i tested it in internet explorer, but when i tested it in firefox it does'nt work

here is the code from my .htaccess file:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\\.thumbnailhistories\\.com$ [NC]
RewriteRule .? http://www.thumbnailhistories.com%{REQUEST_URI} [R=301,L]

(my site is [http://www.thumbnailhistories.com or [URL="http://thumbnailhistories.com"]http://thumbnailhistories.com](http://www.thumbnailhistories.com) without the 'www')

anyone know why this might be happening?

0 Likes

#2

Mallory,

That's assuming that FF can't find example.com - RĂ©mon's answer is correct (and he leaped on it where I wasn't even thinking in that direction :tup: ).

Regards,

DK

0 Likes

#3

Well, the other issue is that Firefox (or at least all my copies I've had) will by default add in a www if it attempts a url without and receives a server not found error. So if in Firefox I go to http://example.com, if that's server not found it will immediately try http://www.example.com.

0 Likes

#4

Have you tried clearing Firefox's cache, closing it, starting it again, and then try again?
Sometimes Firefox caches the way websites should / should not redirect.

When I try the link you supplied in Firefox 3.6.8 it works as intended (i.e. it redirects to the www-domain).

Your .htaccess is also looks correct, so that shouldn't be the problem IMO.

0 Likes