What to do when your Sitemap status is "Denied URLs"

November 01, 2005

If your Sitemap status is "Denied URLs" and the error listed is "URL not under Sitemap path", here are some things to check.

Make sure the URL root matches

If you submit your Sitemap using the pathhttps://example.com/sitemap.xml, then the URLs in your Sitemap should begin withexample.com. Any URLs that begin withwww.example.com aren't considered to be under the Sitemap path. Along those lines, if you Submit your Sitemap using the pathhttps://www.example.com/sitemap.xml, the URLs in that Sitemap should begin withwww.example.com.

To fix this problem, you can either edit the URLs listed in your Sitemap file to match the submitted path, or you can delete the Sitemap and then submit it again using the path that matches the URLs listed in it.

Make sure the Sitemap is at the highest-level directory

If you submit your Sitemap using the pathhttps://www.example.com/sample_folder/sitemap.xml, then all URLs in that Sitemap must begin with that path. This means thathttps://www.example.com/sample.html wouldn't be considered a valid URL in the Sitemap.

If all possible, place your Sitemap at the root location of your site to avoid these types of problems. If you can't place the Sitemap at the root, then list only URLs from the Sitemap location and lower.

See theSitemaps documentation for more details.

Posted byVanessa Fox

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.