1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[req]Diffrent sitemaps for multiple WP blogs hosted on one installation

Discussion in 'Blogging' started by yack09, Aug 8, 2009.

  1. yack09

    yack09 Newbie

    Joined:
    Jul 6, 2009
    Messages:
    48
    Likes Received:
    2
    Hi

    I'm doing autoblog, with one installation for multiple subdomain
    (i got it from here
    http://me.mywebsight.ws/2006/08/11/host-multiple-wp-sites-on-one-installation/ ,
    it simply creates new prefix of tables in database, for each subdomain),
    and i run into problem of sitemap.

    Can you provide code to create subdomain/domain depending sitemaps?
    It would be great if they could be in one folder and saved like:

    sitemaps/domain.com-sitemap.xml

    I made .httaccess to redirect
    domain.com/sitemap.xml
    to
    sitemaps/domain.com-sitemap.xml

    Code:
    Options +FollowSymLinks
    Options +Indexes
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} sitemap.xml$ [NC]
    RewriteCond %{HTTP_HOST} ^(www.)?([a-zA-Z0-9-\.]+) [NC]     
    RewriteRule (.*) sitemaps/%2-sitemap.xml [L]
    
    So this part is done.