Answers for "how to redirect www to non-www with nginx on linux"

0

nginx redirect www to non-www

server {
    server_name www.example.com;
    return 301 $scheme://example.com$request_uri;
}
Posted by: Guest on October-20-2020

Code answers related to "how to redirect www to non-www with nginx on linux"

Browse Popular Code Answers by Language