nginx 301 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;
}