Google XML Sitemaps
Google XML Generator w/ Multisite Support Only Produce Map for Main Si (4 posts)

  1. exodusfrom9to5
    Posted 4 years ago #

    Hi Arne,

    The Google XML Map Generator was supposed to work under MultiSite, but when I tried to use it the XML site map only covered the main site, but not the subdirectory site. I wondered if I missed something.

    My main http://buy-online-reviews-cheap.com

    My Subdir http://buy-online-reviews-cheap.com/painrelief-remedy/

    My sitemap http://buy-online-reviews-cheap.com/sitemaps/buy-online-reviews-cheap-com.xml

    The links from my subdir were not shown there at all so I added the subdir link manually, but it only managed to add the homepage for the subdir.

    How do I make it work automatically to cover all the pages in the subdir site?

    Thanks for the help

    Sai Kit


  2. mrclay
    Posted 4 years ago #

    Multisite was designed to host separate sites, so each site having its own site map makes sense. That said, my organization is using multisite to separate access control, so we need a unified sitemap as well.

    I extended the 4.0b4 version to output an index that points to all the site indexes, but Google won't allow an index to point to another index.

    Option 1 is to include all the sitemaps in robots.txt
    Option 2 is to make a script that consolidates all the sitemaps into one index

    Hopefully arnee will consider integrating something like this.

  3. mrclay
    Posted 4 years ago #

    I rewrote the DoRobots() method in sitemap-core.php to list all our sitemaps in the robots.txt "file":

    public function DoRobots() {
            if($this->GetOption('b_robots') === true) {
                //$smUrl = $this->GetXmlUrl();
                //echo  "\nSitemap: " . $smUrl . "\n";
                $blogs = get_blog_list(0, 'all');
                foreach ($blogs as $blog) {
                    $info = get_blog_details($blog['blog_id']);
                    if ($info->deleted || $info->archived) {
                    $url = 'http://' . $blog['domain'] . $blog['path'] . 'sitemap.xml';
                    // allow pre-fetching the sitemaps to initialize the plugin
                    // in each subsite
                    if (0 && isset($_GET['init'])) {
                    echo "\nSitemap: $url";
  4. Advicemaven
    Posted 4 years ago #

    I hope that this isn't a dumb question. I have one main site powered by WordPress, http://luvemorleavem.com then I have 3 subsites,/blog, /articles, /relationshipvideos. I am wondering if I can install the plugin on all 4 and then under the option to add pages to the sitemap for my main site I could list all three URL's for the sitemaps of my three subsites.

    Will that work, or am I way off on this thinking.

    Thanks so much.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google XML Sitemaps
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic