Redirect WordPress sitemap from non www to www version without getting stylesheet error
On Wordpress , if you have set the www version as the default canonical URL and have redirected the non-www version to the prior, you’ll get an error saying that the sitemap’s stylesheet is missing. Same is the case if you set non-www as default and redirect the www version to the prior. The sitemap thus won’t load. This can cause a problem while submitting sitemaps to Webmasters or other places if you don’t use the default canonical URL form. Well here is a trick to fix it.