Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-22-2012, 07:52 PM   PM User | #1
fine0023
New Coder

 
Join Date: Sep 2011
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
fine0023 is an unknown quantity at this point
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?
fine0023 is offline   Reply With Quote
Old 05-22-2012, 08:20 PM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,455
Thanks: 0
Thanked 498 Times in 490 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
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/
felgall is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:07 AM.


Advertisement
Log in to turn off these ads.