nginx 301 redirect subdomain code example
Example: redirect nginx 301
server {
listen 80;
server_name serverdomain.com;
return 301 http://serverdomain.com$request_uri;
}
server {
listen 80;
server_name serverdomain.com;
return 301 http://serverdomain.com$request_uri;
}