+1 vote
in Web & Google by (74.6k points)
I have more than one sitemap for my website. How can I put all of them in the robots.txt file of the website?

1 Answer

+2 votes
by (84.8k points)
selected by
 
Best answer

It is very easy to add multiple sitemaps to the robots.txt file of your website; simply list them one after the other using the Sitemap directive. 

Here is an example:

User-agent: *

Sitemap: https:// www.example.com/sitemap1.xml

Sitemap: https:// www.example.com/sitemap2.xml

Sitemap: https:// www.example.com/sitemap-blog.xml

In the above example, put your domain name and sitemap filename.

Related questions


...