Support » Networking WordPress » Network unique sitemap.xml's for each site

  • Resolved David Sword

    (@davidsword)


    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:

    site_A.com/sitemap.xml
    site_B.com/sitemap.xml

    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?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Network unique sitemap.xml's for each site’ is closed to new replies.