Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Parse error on sitemap.xml page

Started by Muut Archive 10 years ago · 2 replies · 520 views
10 years ago

I try to add the sitemap page to robots.txt so Google can easily find it,
When checking the page first by browsing to https://mysite.com/sitemap.xml I get the following error:

This page contains the following errors:
error on line 1 at column 8: XML declaration allowed only at the start of the document

Shouldn't this show an XML output? I want to be sure that Google uses my sitemap properly before adding it to robots.txt

10 years ago

Yes it should be HTML output. I just tested on my local and it appears correct. Is it possible to get the real live URL of your site?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1362 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1124 9 years ago