|
I'm sure the answer to this is so obvious I'll slap my self when I find it. I have my domain's registered at Hover. On my control panel here I have domain.com and www.domain.com, but I want all traffic to my Web sites to go to the www.domain.com and have any requests to domain.com redirected to the www.domain.com site. I tried a .htaccess rewrite but it did not seem to work.
Help, advice and more importantly what is the best way to do this to avoid having the SEO score effected by traffic going to the www and non www sites. Thanks, |
|
Create a second app that just does redirects and put this code in it. Johns, Thanks for the answer but I'll admit I don't fully understand. I added a second cgi/php app under one of my domains and added an htaccess file in the root of the new app
but this is not working. Obviously, I don't fully understand what's going on here. The link should explain the whole process step by step, you would than create a second website record and bind the url you wanted redirected to it. |
|
OK... I think I have found the answer, at least it's working for me...
I created a .htaccess file in the root of the application and when I enter anti-lomo.com the browser directs to www.anti-lomo.com (test site). |
Johns,
Thanks for the answer but I'll admit I don't fully understand.
I added a second cgi/php app under one of my domains and added an htaccess file in the root of the new app
but this is not working.
Obviously, I don't fully understand what's going on here.