Answers for "nginx how to redirect wwww to non www"

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
0

nginx redirect to non www

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

Code answers related to "nginx how to redirect wwww to non www"

Browse Popular Code Answers by Language