server { server_name domain.com; rewrite ^(.*)$ http://www.domain.com$1 permanent; }
↧
Permanent redirect with nginx
↧
server { server_name domain.com; rewrite ^(.*)$ http://www.domain.com$1 permanent; }