Yet another blog
Tag Archives: Google XML sitemap
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
- Login to admin terminal (www.sitename.com/blog/wp-admin)
- click on settings on the menu on the left.
- Click on general
- Change the WordPress address (URL) and Blog address (URL) to include www
- 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