Non-WWW XML Sitemap not redirecting to WWW
-
So my site is redirecting everything non-www to www version, with the exception of the xml sitemap being generated by the Yoast SEO plugin. If I go to the non-www version (mysite.com/sitemap_index.xml), it’s just a blank white screen (not a 404). But then if I go to the www version (www.mysite.com/sitemap_index.xml), it shows up just fine.
It’s just weird how everything else gets redirected by the rewrite rule that WordPress adds to the htaccess file. I have also tried flushing the permalinks, but no luck.
UPDATE – After inspecting the element, I see that I’m getting an error:
Unsafe attempt to load URL https://www.mysite.com/main-sitemap.xsl from frame with URL https://mysite.com/sitemap_index.xml. Domains, protocols and ports must match.
Anyone know of a fix?
- The topic ‘Non-WWW XML Sitemap not redirecting to WWW’ is closed to new replies.