Answer the question
In order to leave comments, you need to log in
How to convert rules from .htaccess to nginx config?
Hello! Moved from apache to nginx+php-fpm, having difficulty transferring one of the redirects from .htaccess.
There is a bunch of redirects like:
RewriteRule ^catalog/(.*)-(.*)/2018/.*/$ https://example.ru/$1/$2/ [R=301,L]
RewriteRule ^catalog/(.*)-(.*)/2019/.*/$ https://example.ru/$1/$2/ [R=301,L]
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