Yet another blog

Tag Archives: URL path that includes the www prefix

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, However, the URLs listed inside your Sitemap don’t use the www prefix (for instance,

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 (
  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