Bobr.pw - Бобровая сила

Finished redirects, let's see how robots and metrics will react. And now here's what happened to me.
the task is to configure Nginx to add www everywhere and make an unconditional redirect to this site address, and the second and most important unconditional transfer to the https version.

server {
listen 80;
server_name <ваш_сайт>;
return 301 https://www.$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name www.<ваш_сайт>;
server_name_in_redirect off;

As to remove under this robot.txt can be from redirect can be to know here: Открываем доступ к robots.txt в NGINX при HTTPS-only