Forum Moderators: phranque
For the last year and a bit this code has worked perfectly
RewriteEngine on
# redirect non-www to www subdomain.
RewriteCond %{HTTP_HOST} ^domain\.com [NC]
RewriteRule (.*) [domain.com...] [R=301,L]
My host had issues 3 days ago and now it wont work at all?
I have noticed, prior to the "issues" they had during ftp you could not see the .htaccess file (I understand why) but now I can.
After much reading here I still cant get it to work, I have tried adding Options +FollowSymLinks that doesnt help either.
Help anyone?
Added: the above code works perfect on one of my other servers?
I have other rules in the .htaccess that still work, such as
^folder$ [domain...] [R=301,L]
and I tell it to run php on some html pages, all which still work fine its just the non to www that stopped
If that doesn't help, I'd suggest logging into Windows under a different administrator account, and deleting the file
C:\Documents and Settings\<user-name>\Local Settings\Temporary Internet Files\Content.IE5\index.dat
This file will not be visible if you are still logged-in with your usual account. You will also have to set Windows to "Show hidden files" to see it. IE will re-create this file when you next start it. This file often
gets bloated, leading to system slow-downs, or corrupted, leading to 'strange' problems in IE.
Jim
Is it the case that your www subdomain was not previously-defined in your DNS Zone file? That's the only thing I can think of, and I haven't yet figured out why there would be a difference between IE and Firefox in the handling of such a situation. You might try testing again, and make note of what domain+URL you type, and what domain+URL the browsers actually try to fetch. That might be revealing.
Jim