T
T
tester_toster2016-12-05 11:43:20
htaccess
tester_toster, 2016-12-05 11:43:20

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 question

Ask a Question

731 491 924 answers to any question