Godaddy SEO domain.com compared to www.domain.com

rbgCODE
rbgCODE used Ask the Experts™
on
Yes, I currently have a site the dns is handled by godaddy and I have it pointed to a server that I maintain.  The server is Windows 2003.  

Right now, domain.com and www.domain.com both bring up the same things, but for SEO reasons it is suggested that I always have the page show as www.domain.com

My other dns servers have a simple option that says.  

Do you want the www in your URL?
Leave it alone: Both http://www.domain.com/ and http://domain.com/ will work.
Add WWW: Make http://domain.com/ redirect to http://www.domain.com/
Remove WWW: Make http://www.domain.com/ redirect to http://domain.com/ 

Open in new window


But godaddy has no such option.  How can I set godaddy up so that domain.com automatically redirects to www.domain.com 
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Chris DentPowerShell Developer
Top Expert 2010

Commented:

DNS doesn't redirect. Anyone that exposes it as an option has another webserver in the chain to redirect from domain.com to www.domain.com. It would be better, in my opinion, to set up that redirect (or rewrite) on your web server. That way you're in full control of it.

For IIS you might but the rewrite module (it's a third party thing, not natively supported), or you might create a new site with a host header for domain.com and have that forward to www.domain.com.

Chris

Commented:
Hi rgbCODE - It's done in the Zone File of the Registar where your Domain name is Authoritative with a CNAME (Canonical Name) command, or you can use an "A"record pointing to your IP address and setup the hosting to receive both WWW and non-www domains. ou can have the Name show as www by using www as your primary doman, and "redirecting" the non-www over to it.
Not sure if that will help with the SEO ... Google is getting pretty smart these days ...

My guess is the easiest way for you, with GoDaddy, is call GoDaddy's Support line at 480-505-8877 and tell them what you are trying to do. It is free, they pick up the phone fast, open 24/7, and you will usually get a real support person and not someone reading scripts to you.  
Chris DentPowerShell Developer
Top Expert 2010

Commented:

CNAME records will not perform redirection either. If you want it to shift from domain.com to www.domain.com in the browser you *need* a web server to do it.

Nothing you do in DNS will make that happen automatically. Many ISPs offer it as a service, mostly behind the scenes. I've no idea if GoDaddy does or not. However, since it's a web server call you lose nothing by setting up a permanent redirect on your own server.

Chris
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

Author

Commented:
It is not a service that godaddy offers, at least not that I could find.  The only 2 things I can think of now would be to

1.  Have a seperate IP on my server for domain.com and make that in IIS a 301 redirect to the IIS setup for www. but that just seems crazy, I could also run a script at the top of every page checking for www, and if that does not exist then it says 301 redirect to the page with the www, but that , it just seems there would be an easier way to do this, am I wrong?
Chris DentPowerShell Developer
Top Expert 2010

Commented:

Host Headers. Unless you use SSL you can filter to sites in IIS based on name (all sites use the same IP and port).

So, create a new site with a host header of domain.com, then set that up as a permanent redirect (Home Directory tab in the site properties) to www.domain.com. You should be able to preserve any other parts of the URL they may have entered just be selecting the options there.

Chris

Author

Commented:
Ok, so I did call godaddy and they said this had nothing to do with their DNS, and since their dns just points to my 2003 server it has to be done on the server side.  

Chris could you possibly link me on how to create such a host header that sounds like the best bet so far.  As it stands right now I have a dedicated IP to domain.com and although some people have said google is pretty smart it is even listed in their documents it is preferred to choose one or the other.  Not to mention if you are storing cookies, they wont cross since it is considered technically different domains.
PowerShell Developer
Top Expert 2010
Commented:

This is a useful article because it has lots of pictures:

http://www.visualwin.com/host-header/

You are going to be creating a new website (alongside your existing site). You should see mention of Host Headers in the instructions, that's where you'd enter "domain.com".

You have to give the site a path when its first created, don't worry too much what you set that to, we'll be changing it again very soon.

The step the article doesn't cover is setting the redirect:

1. Open the Properties for the newly created site
2. Select the Home Directory tab
3. Under "The content should come from" choose "A redirection to a URL"
4. Enter the name you wish to use, http://www.domain.com
5. If you wish to use a 301 (permanent) redirect, tick the "A permanent redirection for this resource" box

With all that in place this happens:

 - Client types in, or finds a result pointing to http://domain.com/something.aspx
 - Website for domain.com receives the response and tells the client the content has moved
 - Client re-tries http://www.domain.com/something.aspx
 - Content loads from the real website

Chris

Author

Commented:
thank you

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial