@guezs It may depend on what server you’re running. If you’re running NGINX then you need to add rewrite rules in the NGINX conf file – https://semperplugins.com/documentation/xml-sitemap-rewrite-rules-for-nginx/
If you’re running Apache then it should work fine but it can depend on how you set up your multisite (sub domains, sub directories, or domain mapping).
Thread Starter
guezs
(@guezs)
Thank you for the answer. My site is hosted in Apache and my Multisite is using subdomains.
@guezs I’m not able to reproduce this on a Multisite with subdomains here. Can you try navigating to the robots.txt URL for each site and see if that returns a 404 or not. Make sure of the following before testing this:
1. You don’t have a static robots.txt file on your server
2. You don’t have the Robots.txt module enabled in All in One SEO Pack
This will determine if WordPress is having a problem as WordPress generates a dynamic robots.txt by default.