Answer the question
In order to leave comments, you need to log in
How to rewrite a rule from .htaccess to .nginx-rewrite?
Good afternoon. There is a rule in htaccess:
RewriteRule ^(serials|news|articles)/([0-9]+)-(.*)$ index.php?newsid=$2 [L]
Rewritten under ngnix:
rewrite ^(serials|news| articles)/([0-9]+)-(.*)$ /index.php?newsid=$2 break;
Didn't start. Tell me - how does it look 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