Answer the question
In order to leave comments, you need to log in
How to write a rewrite regular expression in nginx that removes the repetition of the characters "/" in url
There is a tricky url system built on regular expressions in the server in the nginx config.
Despite the clear rules, nginx normally returns pages with a url like
domain.dev////////////////module//////////////action///////////
Task: write a rewrite regular expression in the nginx config, so that nginx would transfer the user from the url
domain.dev////////////////module//////////////action///////////
or domain.dev////////////////module//////////////action
to the url of the form
domain.dev/module/action/
As soon as he didn’t try to contrive, it doesn’t work out to the end to do it right.
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