prefered domain in webmaster tools

Discussion in 'Search Engine Optimization' started by SticKer, May 9, 2007.

  1. #1
    in the google webmaster tools there's an option to select your domain with www and without www so in this case which option should be selected. does it make any difference in indexing and pr
     
    SticKer, May 9, 2007 IP
  2. sweetfunny

    sweetfunny Banned

    Messages:
    5,743
    Likes Received:
    467
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It doesn't make any difference, as long as you choose 1 and have all links pointing to it. I always choose the www. version as it's the most common way people write links.

    Always do a 301 permanent redirect with .htaccess from http to www to prevent canonical URL's ie splitting backlinks between the two, as Google sees them as 2 different pages.
     
    sweetfunny, May 9, 2007 IP
  3. SticKer

    SticKer Well-Known Member

    Messages:
    2,393
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    115
    #3
    can you tell me how to setup the 301 redirection
     
    SticKer, May 9, 2007 IP
  4. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #4
    you must insert this code to your .htaccess file.


    RewriteEngine On

    RewriteCond %{HTTP_HOST} ^seo4fun\.com [NC]
    RewriteRule ^(.*)$ http://www.seo4fun.com/$1 [R=301]


    nıte: you must edit seo4fun and com according to your domain:)
     
    trichnosis, May 9, 2007 IP
  5. SticKer

    SticKer Well-Known Member

    Messages:
    2,393
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    115
    #5
    in the line below is it ^seo4fun\.com or ^seo4fun.com

    RewriteCond %{HTTP_HOST} ^seo4fun\.com [NC]
     
    SticKer, May 9, 2007 IP
  6. sweetfunny

    sweetfunny Banned

    Messages:
    5,743
    Likes Received:
    467
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Exactly how he has it, just change seo4fun with you domain name... and the .com with your extension if appliable.
     
    sweetfunny, May 9, 2007 IP
  7. Nystul

    Nystul Well-Known Member

    Messages:
    3,077
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    175
    #7
    or just Email ur server host and ask them to do it ^^ heh, thats what i did.
     
    Nystul, May 9, 2007 IP
  8. SticKer

    SticKer Well-Known Member

    Messages:
    2,393
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    115
    #8
    good will update the htaccess now
     
    SticKer, May 9, 2007 IP