Answer the question
In order to leave comments, you need to log in
Why does it redirect to the c www domain?
in general, I registered the ns of the Yandex server at the registrar, added the domain to connect.yandex.ru
and there in the DNS management And set the @, www and * records, on the server in the nginx configs at the beginning I didn’t set the redirect from www To without, it automatically redirected for some reason
then put a redirect on the domain with www
if ($http_host != domain.ru ) {
return 301 http://domain.ru$request_uri;
}
the domain stopped working at
all, before everything was also done through Yandex traffic rules, there was no such problem. In which direction to dig?
nginx config
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