Answer the question
In order to leave comments, you need to log in
How to redirect to url in lower case?
Tell me how to correctly redirect from
/Cat/News/100500 to /cat/news/100500/ in nginx (any other ID can be used instead of 100500)
about ~* in the know. Interested in exactly how to do it right
Now I do it all with rewrite like
rewrite ^/Cat/News/([0-9]+) https://site.com/cat/news/$1/ permanent;
location = /Cat/News/ {
alias /cat/news/;
}
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