Quantcast
Channel: WordPress.org Forums » [Yoast SEO] Support
Viewing all articles
Browse latest Browse all 42002

Non-WWW XML Sitemap not redirecting to WWW

$
0
0

Replies: 0

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?

  • This topic was modified 7 hours, 13 minutes ago by jryanp.
  • This topic was modified 7 hours, 12 minutes ago by jryanp.

Viewing all articles
Browse latest Browse all 42002

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>