Answer the question
In order to leave comments, you need to log in
nginx url rewrite how?
good afternoon, I use Nginx + php-fpm for bitrix,
there was a question about changing the yurl ...
there is an old link
http://test.com/zapchasti/ there are a lot of links here,
for example test.com/zapchasti/motor
how to convert to
test.com/ motor
construct like
if ( $request_uri ^/zapchasti/$) { rewrite ^/zapchasti/$ /$1? last;} does not work, poke your nose please
Answer the question
In order to leave comments, you need to log in
if ( $request_uri ~ "^/zapchasti") {rewrite ^/zapchasti/(.*)$ test.com/$1 permanent;}
worked like this
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question