Answer the question
In order to leave comments, you need to log in
How to reset cached redirect in nginx?
Set up a redirect from server.com to www.server.com in this way
server {
server_name “~^(?!www\.).*” ;
return 301 $scheme://www.$host$request_uri;
}
Answer the question
In order to leave comments, you need to log in
Also, restart the browser, because 301 redirects can be cached.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question