Viewing 3 replies - 1 through 3 (of 3 total)
  • You can easily manage your Multisite robots.txt file using this plugin:
    https://en-ca.wordpress.org/plugins/multisite-robotstxt-manager/

    WordPress creates a virtual robots.txt file if there is no robots.txt file present in the root folder. It uses robots_txt hook to output data. So you can easily manage it using this hook, and I believe that’s what the plugin above does in a Multisite environment.

    ^V

    Thread Starter Rodrigo

    (@vejapixel)

    Without the use of plugin, does WP not allow me to create a robots.txt only the subdomain?

    I’m trying to avoid more plugin because I’m with over 50 plugins installed and this is helping with the increase in loading time of my site.

    Sites that are part of the network don’t have their own root directories where you can put robots.txt for each one. That’s why WordPress uses virtual robots.txt. Plugin is the only good way.

    ^V

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Robots.txt for subdomains’ is closed to new replies.