Answered by:
XML sitemap resolving as HTML file

Question
-
I'm running a few Wordpress installs on Azure Websites, and when I go to the sitemaps that were generated by the Yoast SEO plugin they look like static html, (usually the browser will view it as an XML document)
I've added
<mimeMap fileExtension=".xml" mimeType="text/xml" />
Under <staticContent> but this doesn't seem to resolve the problem. I have scanned the sitemap with a validator and it says it is invalid (Incorrect http header content-type). I fear this is could effect sites on Bing and Google.
I see there is a handler mappings. I don't know if that would resolve the issue or not. Can anyone assist? I am having problems getting a site crawled, and I think this may be the problem, but I don't know how to solve it.
Thursday, March 30, 2017 5:24 AM
Answers
-
The solution for the error you've described has been documented in this Yoast KB article - Sitemap Error: Unsupported format HTML. If despite following that document the issue persists then I suggest reaching out to Yoast technical support since the error is more to do with sitemaps generated by the Yoast SEO plugin than with Azure App Service platform.
Disclaimer: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
- Edited by Md Shihab Thursday, March 30, 2017 6:40 PM
- Proposed as answer by Md Shihab Thursday, March 30, 2017 6:56 PM
- Marked as answer by virtualblend Friday, March 31, 2017 3:04 PM
Thursday, March 30, 2017 6:37 PM
All replies
-
The solution for the error you've described has been documented in this Yoast KB article - Sitemap Error: Unsupported format HTML. If despite following that document the issue persists then I suggest reaching out to Yoast technical support since the error is more to do with sitemaps generated by the Yoast SEO plugin than with Azure App Service platform.
Disclaimer: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
- Edited by Md Shihab Thursday, March 30, 2017 6:40 PM
- Proposed as answer by Md Shihab Thursday, March 30, 2017 6:56 PM
- Marked as answer by virtualblend Friday, March 31, 2017 3:04 PM
Thursday, March 30, 2017 6:37 PM -
Thanks! I tracked it down to it being the caching plugin I was using, WP Super Cache; for those in the future, add what I have to the cache settings under the string list not to cache under advanced options:
sitemap_index.xml
.*-sitemap.xmlFriday, March 31, 2017 3:04 PM