Answers for "nginx redirect browser to localhost"

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
1

nginx redirect to another path

location = /content/unique-page-name {
  return 301 /new-name/unique-page-name;
}
Posted by: Guest on March-08-2022

Browse Popular Code Answers by Language