Answer the question
In order to leave comments, you need to log in
How to write a regular expression for nginx?
Hello. You need to set up a 301 redirect for nginx.
There is an address where name is any value: /test/*name*/test2/
Need to cut: test2/
As a result, it turns out: /test/*name*/
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question