Hello there! currently I am using rewrites to redirect www.domain.com to domain.com. someone suggested me that instead of:
server { server_name domain.com; rewrite ^/(.*)$ http://www.domain.com/$1 permanent; }
I should use:
return 301 $scheme://www.domain.com$request_uri;
Since according to him a return is quicker than a rewrite, and $scheme is protocol independent.
What do you think?