I have had the ‘Google XML-Sitemap’ plug-in for WordPress installed for a time now, and everything was working perfectly.
However, after the plug-in was updated some time last week it started showing errors in Google’s Webmaster Tools. The error was the following.
“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).”
To fix this is simple, but I had to search around quite a lot to get the fix. All you have to do is go to the General tab under Settings in WordPress and add the ‘www.’ prefix to both the WordPress address AND the Blog address, then rebuild and submit the sitemap.
If you are still getting errors (which I did) check that any additional URL’s mentioned in the XML-Sitemap tab of Settings have the ‘www.’ prefix, as mine reset automatically.
As I said; Simple! But it took quite a lot of re-building and re-submitting to find the answer!