WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
MU and robots.txt sitemap link (1 post)

  1. rtomo
    Member
    Posted 1 year ago #

    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!

    http://wordpress.org/extend/plugins/wordpress-seo/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic