
Fix Sitemap URL Not Allowed in Search Console: 11 Cases Tested
Sitemap URL not allowed means a <loc> sits outside the sitemap's host, protocol, port or folder. I ran 11 setups through a checker: 6 fail, 1 needs robots.txt.
Author
Software Engineer · AI Builder · Writer · Expedia Group
Software engineer writing about AI, Claude Code, LLMs, OpenAI, Anthropic, and developer tooling. 214 articles on AI engineering, production systems, and the tools shaping modern development. 5+ years at Expedia Group, Tekion, and BYJU'S.
Google Search · Preferred sources
If you already read this writing, add umesh-malik.com as a Preferred Source. Google can then highlight it with a preferred badge in Top Stories, AI Overviews, and AI Mode — for you, not as a site-wide ranking boost.

Sitemap URL not allowed means a <loc> sits outside the sitemap's host, protocol, port or folder. I ran 11 setups through a checker: 6 fail, 1 needs robots.txt.

Your sitemap appears to be an HTML page means Google got HTML, not XML. I tested 8 causes. Two hit only Googlebot, so it looks fine in your browser.

Host had problems last week means Googlebot hit 429s, 5xx, timeouts or DNS errors. I tested 8 robots.txt faults: the 403 that passes is the scary one.

Sitemap contains URLs which are blocked by robots.txt means your two files disagree. Find the Disallow rule behind each URL, then decide which file is wrong.

Invalid object type for field means a nested @type isn't one Google accepts there, like brand typed as Thing. 8 common mistypes and a script to find them.

Hreflang no return tags means page B never links back to page A, so Google ignores the pair. Find the page that is actually broken, then fix it in one pass.