Better WordPress Google XML Sitemaps (support Sitemap Index, Multi-site and Google News)
Add support to add sitemap links to robots.txt file (2 posts)

  1. Russell Heimlich
    Posted 3 years ago #

    ... for sub-folder multi-site installs.

    I don't see why you can't do it by hooking in to the do_robots.txt action.

    The old Sitemap plugin I use to use did it just fine (search for robots) -> http://plugins.svn.wordpress.org/xml-sitemap-feed/tags/3.9.2/XMLSitemapFeed.class.php

    I managed to write my own filter to handle this but just thought you should know that it's not that hard to do.

    I use a sub-folder multisite install with the Domain Mapping plugin. You can see it in action at http://www.pewresearch.org/robots.txt, http://www.pewsocialtrends.org/robots.txt etc.

    Great plugin by the way. I really appreciate all of the hard work you clearly put in to this. So happy to see sitemap index support. The old plugin would constantly choke on too many URLs.


  2. Khang Minh
    Plugin Author

    Posted 3 years ago #

    Hi Russell, thanks for using BWP GXS.

    Actually robots.txt can not reside at a sub-directory, so something like this: http://domain.com/sub-folder/robots.txt is not correct and would not work at all.

    It's not hard I just haven't added support for mapped domain in a sub-folder multi-site environment, but sure it will be supported :).


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Better WordPress Google XML Sitemaps (support Sitemap Index, Multi-site and Google News)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.