Skip to content

Include XML sitemap in robots.txt

If you’ve got a robots.txt file and an XML sitemap, add the following line to robots.txt so that search engine spiders will pick up your sitemap without you having to submit.


Of course, change the url to match your actual site.

Published inCode Tips

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *