RewriteCond %{HTTP} On
RewriteCond %{HTTP_HOST} ^(www\.|)mysyte\.ru$ [NC]
RewriteRule ^(.*)$ htts://mysyte.ru/$1 [R=301,L]
server {
listen 80;
listen [::]:80;
server_name domain.ru www.domain.ru;
location / {
return 301 https://domain.ru$request_uri;
}
}
Strict-Transport-Security: max-age=31536000; includeSubDomains