Include XML sitemap in robots.txt

Posted by & filed under Code Tips.

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.