PradysTechBlog

Yet another blog

How to add www to sitemap links created by XML Sitemap Generator for WordPress

XML Sitemap Generator for WordPress  is a wonderful sitemap generator for wordpress platform. In one of sites when i posted the sitemap in google webmaster, i got an error  saying

Paths don’t match
We’ve detected that you submitted your Sitemap using a URL path that includes the www prefix (for instance, http://www.example.com/sitemap.xml). However, the URLs listed inside your Sitemap don’t use the www prefix (for instance, http://example.com/myfile.htm).

This really was annoying coz, the blog was part of another site which is not on wordpress  but the sitemap generated had www prefixed and google had index over 700 pages of it. I was sure there was something in the settings that would make it add www.

Here is how i sorted it out

  1. Login to admin terminal (www.sitename.com/blog/wp-admin)
  2. click on settings on the menu on the left.
  3. Click on general
  4. Change the WordPress address (URL) and  Blog address (URL) to include www 
  5. Save changes

This should create the sitemap to include www prefixed to the url.

Dont forget to manually rebuild the sitemap

Click on xml-sitemap under settings

Click on rebuild the sitemap link to manually rebuild the sitemap

If you changed something on your server or blog, you should rebuild the sitemap manually.

Verify if your sitemap now has www  prefixed.

Hope this helps

Dont forget to post your comments

Advertisements

9 responses to “How to add www to sitemap links created by XML Sitemap Generator for WordPress

  1. RJ February 25, 2010 at 11:17 am

    Hi
    I couldnt find an option to change the wordpress address url in the Settings->General option? Is it because I have used my own domain name? My blog address is
    http://technotz.com
    Also, where can I see the XML Sitemap Generator for WordPress ? Can you please give me the link/menu name, and give any additional info required to submite a site map to google?
    Thanks.

  2. RJ March 24, 2010 at 5:18 am

    Thank you. I have my blog on wordpress right now, but this could be helpful if I ever move it to own hosting 🙂

  3. prady March 26, 2010 at 4:44 am

    You are most welcome

  4. what a strange world June 20, 2010 at 3:20 pm

    it didnt work for me… don’t know what’s wrong? Still no www. prefix? what should i do?

  5. Sandesh July 3, 2010 at 11:51 am

    Nice article, I’m struggling from last 2 weeks to configure for my blog http://www.cmsstores.com, Well done thanks.

  6. zamaan August 7, 2010 at 11:13 am

    Hai mate,

    i just made the change via settings to include the www prefix.
    then rebuild the site map (google xml site map for wordpress). but still the urls are with out www prefix.

    pls help.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: