[resolved] Network unique sitemap.xml's for each site (5 posts)

  1. davidsword
    Posted 3 years ago #

    I have domain mapping, and in my network, as expected, if I put a file in /html/ like sitemap.xml or robots.txt, i can access that file via any of the sites:


    the issue is apparent that site A and B need different site maps (as the sites have nothing in common)..

    so I was thinking to solve this, create some sort of rules in htaccess:

    if site A show sitemap_A.xml, if B: show sitemap_B.xml
    then either way rewrite the URL /sitemap_(.*).xml to sitemap.xml for bots

    can anyone help me out on how to accomplish this or if it's even possible?

  2. You need to use a plugin for that.

    http://wordpress.org/extend/plugins/wordpress-seo/ can do it.

  3. davidsword
    Posted 3 years ago #

    thanks but I already have an seo plugin that doesn't play along nicely with the yoast one, will be easier to figure this one than to migrate to that plugin,

    I guess the beauty of open source is I can look around for how they did it - so thanks for letting me know that plugin does it!..

  4. davidsword
    Posted 3 years ago #

    perfect. Thanks a million!

Topic Closed

This topic has been closed to new replies.

About this Topic