Answer the question
In order to leave comments, you need to log in
Can sitemap.xml be stored in subfolders of a domain?
Usually, if a site has a subfolder site.ru/moscow, then its sitemap is located along the path site.ru/sitemap.xml , but I have the opposite case site.ru/moscow/sitemap.xml and so on for all cities of Russia. In general, each subfolder has its own separate sitemap.
How does this affect SEO? And what if each subfolder has its own robots.txt?
upd: and how to add such subfolders to the webmaster. Everything is clear with subdomains . Need for everyone. How about in this case?
Answer the question
In order to leave comments, you need to log in
You can specify in robots.txt where your sitemap is located.
In addition, there can be several sitemaps. Robots.txt
example with sitemap.xml address
User-agent: *
Allow: /
Sitemap: https://site.ru/sitemap.xml
Sitemap: https://site.ru/moscow/sitemap.xml
Sitemaps can be as you like
Robots will look at the search engine only at the root Am all the rest will simply ignore
A sitemap file can be placed anywhere on the site, but it only affects directories below the parent directory. Therefore, if you need the action of the Sitemap file to extend to all sections of the site, we recommend placing it at the root level.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question