Categories
How to make nginx 301 redirect?
I write in the config: rewrite /book/ / permanent; but the redirect occurs not only from this address, but also from "/book/any address", how to prevent this from happening?
rewrite /book/ / permanent;
Answer the question
In order to leave comments, you need to log in
nginx.org/en/docs/http/ngx_http_rewrite_module.htm...location = /book { return 301 /; }
location = /book { return 301 /; }
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question