What to do when your Sitemap status is "Denied URLs"
Stay organized with collections
Save and categorize content based on your preferences.
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 path https://example.com/sitemap.xml, then the
URLs in your Sitemap should begin with example.com. Any URLs that begin with
www.example.com aren't considered to be under the Sitemap path. Along those lines,
if you Submit your Sitemap using the path https://www.example.com/sitemap.xml, the
URLs in that Sitemap should begin with www.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 path
https://www.example.com/sample_folder/sitemap.xml, then all URLs in that Sitemap must
begin with that path. This means that
https://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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["If your Sitemap status shows \"Denied URLs\" with the error \"URL not under Sitemap path\", ensure the URL root in your Sitemap matches the submitted path (e.g., `example.com` or `www.example.com`)."],["To resolve this issue, modify the URLs in your Sitemap or resubmit it using the correct path corresponding to the URLs listed."],["Place your Sitemap at your site's root location (`https://www.example.com/sitemap.xml`) to prevent path-related issues and ensure all URLs are considered valid."],["When a Sitemap isn't at the root, include only URLs from the Sitemap's location and its subdirectories, meaning a Sitemap at `https://www.example.com/sample_folder/sitemap.xml` can only contain URLs starting with that path."]]],[]]