Good day! There is a website (online store) with many regional versions, each regional version is presented on its subdomain (for example, moscow.mysite.ru, spb.mysite.ru, rostov.mysite.ru, etc.), for the site you need to issue Different robots.txt for each subdomain. I tried to do this:
RewriteCond %{HTTP_HOST} spb.mysite.ru [NC] RewriteRule ^robots\.txt /robots_spb.txt [NC,L] did not work. Then in a similar way, but through php
RewriteCond %{HTTP_HOST} spb.mysite.ru [NC] RewriteRule ^robots\.txt robots.php [L] And again nothing. The preferred option would be via php, but I do not know how to implement it. Maybe someone came across? Tell me how to do it.
Thank you in advance!