Skip to content
Nazmul Nikhil
Menu

Sitemap in the Wrong Format (Ahrefs): Use a Supported Format

Ahrefs flags sitemaps that aren't in a supported format, such as an HTML page or an app shell served instead of XML. Here's what's accepted.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
Sitemap in the Wrong Format (Ahrefs): Use a Supported Format
Photo: Wesley Tingey on Unsplash

In short

Ahrefs flags "Sitemap in the wrong format" when a file declared as a sitemap isn't in a supported format. Google accepts XML, RSS or Atom feeds, and plain text files with one URL per line. Common mistakes are pointing robots.txt at an HTML sitemap page, a redirect to the home page, or an error page returned with status 200. Point to the real XML sitemap.

A sitemap must be in a format search engines can parse. An HTML page full of links isn't one.

Common causes

Cause Fix
robots.txt points to an HTML "sitemap" page Point it to the XML sitemap
Old sitemap URL now shows a 404 page with status 200 Update the URL; fix the soft 404
Single-page app serves index.html for /sitemap.xml Exclude the sitemap path from the app's fallback rule
Compressed file served without gzip handling Serve it uncompressed, or correctly as .gz

The third cause is common on single-page apps: the server's catch-all rule returns the app's HTML for any path, including /sitemap.xml. Make sure the real file is served before the fallback.

HTML sitemaps are still fine for people

A page listing your main pages can help visitors and internal linking. Just don't declare it as your sitemap; keep the XML one for search engines.

This guide isn't affiliated with or endorsed by Ahrefs.

Sources and references

TAGSAhrefs Site AuditSitemap wrong formatSitemap formatHtml sitemap vs xml
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com