Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2011
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    preferred domain in webmaster tools

    I recently read this information here: http://support.google.com/webmasters...n&answer=44231 that generally recommends switching your settings in Google Webmaster Tools to have a preferred domain of either the www or non-www version of your site (I guess to help your site rank better by not having inbound links spread between "www.domain.com" and just "domain.com"). The choices it give you are "don't set a preferred domain" (what I currently have it set as), "display urls as www.domain.com" or "display urls as domain.com"

    I assume in most cases, I would want to set it to one of the latter choices. However, I already have a 301 redirect in my .htaccess to make the non-www version of my url go to the www version. So would choosing a preferred domain in Google still be necessary even with the 301 redirect?

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,479
    Thanks
    0
    Thanked 635 Times in 625 Posts
    The 301 handles the redirect on your site.

    The preferred domain setting tells Google to treat one as the other when it looks at links to your site from other sites before it follows them to your site. If you don't set a preference then the www and non-www versions of links will be treated as initially pointing to different sites and it will only be if Google decides to follow them that it will find out that one permanently redirects to the other. So by telling Google the preferred version in the first place you make its job easier. Google might use that as a factor in determining where to put the page in the search results.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •