Multisite Sitemaps

Easily generate sitemaps for your Multisite network each time a user publishes a new post.

Version 1.1

  • Exposing totals, posts and pages counts for modification.
  • Adding file path replacement hook.
  • Adding filter and define switch for sitemap caching.

Changelog

June 28, 2012 - version 1.1
  • Exposing totals, posts and pages counts for modification.
  • Adding file path replacement hook.
  • Adding filter and define switch for sitemap caching.

January 12, 2012 - version 1.0.5
  • Silenced open_basedir warnings.

January 5, 2011 - version 1.0.4
  • WP 3.1 compatibility
  • Changed install location for autoupdate ability

March 9, 2010 - version 1.0.3

    "WPMU DEV has created plugins that have transformed my business."

    Andrew Shanahan

    Simple Sitemaps for Multisite is an easy yet incredibly effective and lightweight automatic sitemap generator for Multisite.

    The generator will automatically create sitemaps for every site in your network, which will then be submitted to search engines like Google and updated each time a user publishes a new post.

    Simple Sitemaps for Multisite
    Quickly and easily create a sitemap for your Multisite network.

    For sites with regular, multiple postings, XML sitemaps are a shortcut for search engines to identify the new content and index it accordingly.

    Help boost your SEO with Simple Sitemaps for Multisite.

    Want More Features?

    If you’re looking for more finely-turned controls and incredible SEO features, check out Infinite SEO by WPMU DEV.

    For help with installing plugins please refer to our Plugin installation guide.

    1: Install the Simple Sitemaps for Multisite Plugin.

    2: Move sitemap.php from simple-sitemaps folder to wp-content folder on your site.

    Upload php file to wp-content folder

    3: Download your .htaccess file onto your hard drive

    Download .htacess file

    4: Open up your .htaccess file using EditPlus and add the following to your .htaccess under the line that handles uploaded files:

    RewriteRule ^(.*/)?sitemap.xml wp-content/sitemap.php [L]

    Add RewriteRule to .htaccess file

    IMPORTANT! Note the order of the new rule in the sample htaccess file:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteRule ^(.*/)?sitemap.xml wp-content/sitemap.php [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]

    Note Nginx users should use the following rewrite rule instead of the above: rewrite ^/(.*/)?sitemap.xml /wp-content/sitemap.php last;

    5: Save your .htaccess file. Upload your amended .htaccess file to your public_html folder and overwrite your existing file

    Upload .htaccess to public html folder

    TIP:

    • Check to confirm that the .htaccess file has been overwritten by making sure the last modified date is the same as the file you’ve uploaded.
    • Some FTP clients have a hard time overwriting the .htaccess file and/or some servers are configured to not all the FTP client to overwrite the .htaccess file.

    Checking htaccess file has been overwritten

    If this happens you need to delete the file from the server and then upload the modified file.

    Delete .htaccess file

    6: Visit Network Admin -> Plugins and Network Activate it there.

    How To Use :

    Simple sitemaps plugin – Very simple and yet incredibly effective and lightweight automatic sitemap generator.

    It automatically create sitemaps for every blog, that’ll then be submitted to Google and updated every time a new post is made.

    You can check that your sitemaps have been created by going to: blog.domain.tld/sitemap.xml

    Example of what sitemap.xml looks like

    You can set the number of items to be indexed by adding the “SIMPLE_SITEMAPS_POST_SOFT_LIMIT” define to your wp-config.php. For example, if you wanted to have the plugin index 25 items, you’d enter the define like this:

    define('SIMPLE_SITEMAPS_POST_SOFT_LIMIT', 25);

    You can also add a define to your wp-config.php to prevent the plugin from serving up a cached version of your sitemap:

    define('SIMPLE_SITEMAPS_USE_CACHE', false );

    Simple, isn’t it? :)

    If you want more fine-grained control over sitemap generation, and a boatload of other features as well, take our Infinite SEO plugin for a test-drive. We’re sure you’ll love it!