1

robots.txt containts following instructions:

User-agent: *
Allow: /public/
Disallow: /
Sitemap: http://sitedomain.com/sitemapindex.xml

it seems that in this case sitemapindex won't be accessible for the search crawler and should be moved to public folder, is it correct or crawler will process the sitemap in any case?

1

sitemapindex won't be accessible for the search crawler and should be moved to public folder

Yes, that is correct, the XML sitemap won't be crawlable unless moved to the /public/ folder.

Alternatively, you could add an exception for your sitemap:

Allow: /sitemapindex.xml

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.