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
- 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
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.
Hi RJ,
Are you operating the site in wordpress.com or have it in your hosting? If its in your own hosting then you will have these options which i have mentioned. In WordPress.com there are restrictions on plugins used.
http://www.arnebrachhold.de/projects/wordpress-plugins/google-xml-sitemaps-generator/
Here is where you can get Google (XML) Sitemaps Generator for WordPress
Thank you. I have my blog on wordpress right now, but this could be helpful if I ever move it to own hosting 🙂
You are most welcome
Hi,
Thanks friend 😉
most welcome 🙂
it didnt work for me… don’t know what’s wrong? Still no www. prefix? what should i do?
Nice article, I’m struggling from last 2 weeks to configure for my blog http://www.cmsstores.com, Well done thanks.
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.