Answer the question
In order to leave comments, you need to log in
How to make dynamic robots.txt for subdomains in Bitrix?
There is a site with subdomains, dynamic content from the region selection. I don’t understand how to make robots.txt correct for a subdomain.
Answer the question
In order to leave comments, you need to log in
If the directives in these files are the same, then they (the files) will differ only in the sitemap.xml address. Enable .htaccess to process txt as php and form a string with the sitemap.xml address using the HTTP_HOST variable.
1. if this is a multi-site then put it in each site
2. if it's just domain aliases, then the easiest way to do this is in nginx
3. as far as I understand, aspronet has something similar, then redo it yourself
We are using this module.
https://marketplace.1c-bitrix.ru/solutions/webfly....
There, on the installation tab, there is an instruction on how to set up htaccess, but we have a redirect configured in nginx, set up a hoster.
It will be necessary to throw off how it's done.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question