Background of the issue:
I’m using WPML in domain mode with two domains: الرابط المخفي (English) and الرابط المخفي (Dutch). I’m also using Rank Math Pro to manage robots.txt. The problem is that Rank Math only outputs one global robots.txt file for all domains, even though WPML serves content per domain. My goal is to have a separate robots.txt per domain, so that الرابط المخفي and الرابط المخفي can contain different sitemap URLs. Google requires correct sitemap references per domain when I run separate Search Console properties.
Symptoms:
Rank Math only outputs one global robots.txt file for all domains, even though WPML serves content per domain.
Questions:
Is WPML able to serve different robots.txt outputs per domain in a single-site installation when using Rank Math Pro? And if so, how should this be implemented?
Does WPML route robots.txt requests through its language domain mapping?
Can WPML provide different hooks or filters so Rank Math can output a per-domain robots.txt?
If this is not supported, do you recommend using custom rewrite rules or a mu-plugin to control robots.txt per domain?
Any official guidance or best practices for handling robots.txt in a domain-per-language setup would be greatly appreciated.
الموضوع ”[مغلق] Separate robots.txt per domain when using WPML (domain mode) and Rank Math Pro“ مغلق للردود الجديدة.