SyntaxFix
Write A Post
Hire A Developer
Questions
location / { if ($http_host !~ "^www.domain.com"){ rewrite ^(.*)$ $scheme://www.domain.com/$1 redirect; } }