Non www changed to www, sitemap.xml error

Discussion in 'Google Sitemaps' started by KimiGermany, Apr 24, 2010.

  1. #1
    Hello guys,

    Help!!!! I had my site in http://blog.web6.org and changed it to http://www.blog.web6.org
    I checked this morning in webmaster tool, there are problems:
    1. My robots.txt file : http://blog.web6.org/robots.txt which is still achievable. But it doesn't redirect me to http://www.blog.web6.org/robots.txt. Should i redirect it with 301 ht access?
    2. My sitemap has error because: Sitemap URL is : http://blog.web6.org/sitemap.xml which is not true. So i changed my robots.txt change the sitemap URL line to http with www in order to tell Google that's my sitemap URL. Did i do it right?
    Some one has any idea or suggestions? Thanks a bunch in advance!
     
    KimiGermany, Apr 24, 2010 IP
  2. newlogo

    newlogo Peon

    Messages:
    3,931
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    first u need to redirect domain non www to www and then u can create sitemap
     
    newlogo, Apr 24, 2010 IP
  3. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #3
    do a 301 redirection which is better.
     
    chandan123, Apr 24, 2010 IP
  4. KimiGermany

    KimiGermany Peon

    Messages:
    1,117
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hey amarketforce,
    Thanks so much for replying. Well, i did create my sitemap a month ago, but i changed the www URL last week :( anyways I delete my blog.web6.org in webmaster tool and resubmit my http://www.
     
    KimiGermany, Apr 24, 2010 IP
  5. KimiGermany

    KimiGermany Peon

    Messages:
    1,117
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #5
    KimiGermany, Apr 24, 2010 IP
  6. websitetools

    websitetools Well-Known Member

    Messages:
    1,513
    Likes Received:
    25
    Best Answers:
    4
    Trophy Points:
    170
    #6
    Your domain has to match the URLs in sitemap file and what submitted to Google Webmaster Tools.
    So you will need to regenerate your sitemap if you changed www vs non-www.

    See this article about duplicate urls.
     
    websitetools, Apr 24, 2010 IP
  7. KimiGermany

    KimiGermany Peon

    Messages:
    1,117
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #7
    KimiGermany, Apr 24, 2010 IP
  8. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #8
    chandan123, Apr 25, 2010 IP
  9. KimiGermany

    KimiGermany Peon

    Messages:
    1,117
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Chandan123!! Thank you so much, I actually did R=301 instead of R=permanent, but after reading your post, i change to permanent LOL.

    Cheers!
     
    KimiGermany, Apr 25, 2010 IP
  10. KimiGermany

    KimiGermany Peon

    Messages:
    1,117
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Okay, I realized redirect it via .htaccess makes trouble, people from google will be landed on my index.php :( so i delete those codes, and i tried to come from google, it works again. Odd
     
    KimiGermany, Apr 25, 2010 IP