www or not?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
elecktricity
Forum Contributor
Posts: 128
Joined: Sun Sep 25, 2005 8:57 pm
Location: Trapped in my own little world.
Contact:

www or not?

Post 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?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: www or not?

Post 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.
Post Reply