Answer the question
In order to leave comments, you need to log in
How to set up redirects in nginx in a separate file (not in the domain configuration)?
How to set up redirects from one URL to another in nginx in a separate file? (not in domain config)
We have a lot of redirects and they are generated automatically from the database.
Is it possible to specify a separate file in the domain configuration and throw redirect rules there?
Answer the question
In order to leave comments, you need to log in
Do not suffer nonsense, so I beg you, what kind of crutches in the place where there is no point in doing them.
1. this should be done by the CNC and not nginx
2. if your engine does not know how to do this directly or it is a crutch on a crutch.
So who's stopping you from taking 404.php and making these redirects in it?
No, we will get into nginx with a separate file, store it, we will poke the includes and reload the web server in addition.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question