meteor-sitemaps icon indicating copy to clipboard operation
meteor-sitemaps copied to clipboard

Sitemap is html

Open kenshinman opened this issue 8 years ago • 4 comments

Hi, Thanks for this wonderful and helpful package. Works well. There is this issue i get grom Google's webmaster's console. It says

Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead. though the sitemap's url is /sitemap.xml here's the url naijapoll.com/sitemap.xml

kenshinman avatar Jul 15 '16 20:07 kenshinman

@gadicc Hi, I have exactly the same problem. Google gives this error. @gadicc I hope you did not leave this package. Thanks for checking the url below: https://ghadr.org/sitemap

Saeeed-B avatar Feb 19 '21 19:02 Saeeed-B

@kenshinman @gadicc I found the cause of this problem, this problem occurs for those who use prerender. prerender provides these pages to Google in html format.

Saeeed-B avatar Feb 19 '21 20:02 Saeeed-B

The only solution is to provide site maps with the xml extension, because only then they are not provided by the prerender and are provided by the meteor itself.

Meteor Render : :+1: /sitemap.xml

Prerender Render as hmlt format : :-1: /sitmap

Saeeed-B avatar Feb 19 '21 21:02 Saeeed-B

Hey @Saeeed-B

Great job on figuring this out and thanks so much for reporting back and helping others from your experiences!

Best wishes

gadicc avatar Feb 20 '21 05:02 gadicc