Google Search Console and URL Not Allowed
You normally place your sitemap.xml file in your website root. If not, you may get errors about certain URLs not being allowed.
Per default Google Search Console
and other search engines only accept URLs in XML sitemaps if:
- The URLs are placed in same directory as the XML sitemap.
- The URLs are placed beneath the directory where your XML sitemap is placed.
If you can edit robots.txt
you may be able to use XML sitemap cross submit as a solution,
You can find more information about cross submit of XML sitemaps at:
xml sitemaps protocol page