Page 1 of 1

www or not?

Posted: Wed Dec 28, 2005 7:49 pm
by elecktricity
is there a way to use .htaccess to redirect users if its not a like 'www.example.com' like this:
they enter in
site.com
and I want it to redirect to:
http://www.site.com
without effecting anything with search engines like google?

Re: www or not?

Posted: Wed Dec 28, 2005 7:52 pm
by Chris Corbyn
elecktricity wrote:is there a way to use .htaccess to redirect users if its not a like 'www.example.com' like this:
they enter in
site.com
and I want it to redirect to:
http://www.site.com
without effecting anything with search engines like google?
If you want to be 100% sure that Google didnt pay attention it will need to be at a DNS level. Set a CNAME record up for www :) A redirect of any sort might very well affect Google.