Forum Moderators: phranque
After searching google and webmasterworld for the last few hours, I decided to ask for help. I have one redirect working perfectly on one of my sites, however it works differently on my other that is hosted by another company. Like many others here, my google results show up in 2 places and I want to redirect all www. results to no www. Here is the rewrite:
RewriteEngine On
rewritecond %{http_host} ^www.*$
RewriteRule (.*) [mywebsite.net...] [R=301,L]
It redirects all individual pages and folders correctly, however when I go to wwWebmasterWorldebsite.net or wwWebmasterWorldebsite.net/ it does not redirect. I tried looking at the Apache book but it's like trying to read hieroglyphics. I'm not too sure why it works on one site and not the other. Guess my host has something configured differently. Any help would be appreciated and thanks in advance!