Answer the question
In order to leave comments, you need to log in
How to make an nginx exception for robots.txt?
After moving to https, Yandex began to swear at the robots.txt file. Сервер отвечает редиректом на запрос /robots.txt
As far as I understand, the problem is solved by adding the robots.txt file to the exceptions.
Please tell me how to do it right?
Current configuration:
server {
listen ип:80;
server_name domain.ru www.domain.ru;
return 301 https://domain.ru$request_uri;
}
server {
listen ип:443 ssl;
server_name domain.ru;
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question