Adding sitemap to robots.txt

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
12/6/2013 5:24:34 AM
Nik
Gravatar
Total Posts 36
mojoportal.net.ua - Russian community of mojoportal

Adding sitemap to robots.txt

I have proposition:

-include in root file sitemapindex.xml https://www.mojoportal.com/submitting-your-site-maps-to-google-and-bing.aspx

whith next config:

<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>
http://yoursiteroot/SiteMap.ashx
</loc>
</sitemap>
<sitemap>
<loc>
http://yoursiteroot/Blog/BlogSiteMap.ashx
</loc>
</sitemap>
<sitemap>
<loc>
http://yoursiteroot/Forums/ForumSiteMap.ashx
</loc>
</sitemap>
</sitemapindex>

-add to robots.txt next string

Sitemap: http://yoursiteroot/sitemapindex.xml

This will allow search engines to see the structure of the site.

12/6/2013 9:45:23 AM
Gravatar
Total Posts 18439

Re: Adding sitemap to robots.txt

problem is how to resolve "yoursiteroot", it cannot be resolved automatically from a static xml file so the file has to be hard coded, therefore end users who want to do this should do it for themselves instead of expecting it as a built in feature.

I recommend always submit your site maps to google and bing instead of expect them to just discover it and once site maps have been submitted then this is not needed to add a static index file or update robots.txt

 

You must sign in to post in the forums. This thread is closed to new posts.