HTACCESS 301 redirect not working
Posted: Thu Sep 17, 2009 1:31 am
i am new to htaccess. I have been using the following code to perform 301 redirect:
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
This is not working correctly in all browser. I am using firefox,IE,Flock and Safari. This is not working in IE. Also in few other computers, its not working in firefox or any other browser.
I am looking for a solution badly. Please help
Thanks
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
This is not working correctly in all browser. I am using firefox,IE,Flock and Safari. This is not working in IE. Also in few other computers, its not working in firefox or any other browser.
I am looking for a solution badly. Please help
Thanks