Support » Plugins and Hacks » MU and robots.txt sitemap link

MU and robots.txt sitemap link

  • WordPress version: 3.5.1
    WordPress SEO version: 1.4.7

    I did this: Create WP MU (with subdomain virtualisation mod), install your plugin and network activate, enable the xml sitemap.

    I expected the plugin to do this: The plugin automatice createing the robots.txt, with sitemap link with variable url.
    ( domain.com/sitemap_index.xml – main site xmp sitemap link
    sub.domain.com/sitemap_index.xml – one subdomain )

    Instead it did this: I’m creating the robots.txt file, with that code:

    User-agent: *
    Disallow: /wp-admin/
    Disallow: /wp-content/plugins/
    Disallow: /wp-includes/
    Sitemap: http://domain.com/sitemap_index.xml

    The problem: When i’am look the sub.domain.com/robots.txt, he’s display the main site robots.txt file, with wrong xml sitemap link. (domain.com/sitemap_index.xml)

    How to add variable domain for the robots.txt ?
    (sub.domain.com/robots.txt – sitemap link: sub.domain.com/sitemap_index.xml
    sub2.domain.com/robots.txt – sitemap link: sub2.domain.com/sitemap_index.xml and more…)

    Thank you!


  • The topic ‘MU and robots.txt sitemap link’ is closed to new replies.