Answer the question
In order to leave comments, you need to log in
How to translate nginx rewrite to Apache mod_rewrite?
Everyone writes about how to translate apache rewrite into nginx, but did not find at all how to do the opposite?
Already tortured, it seems that something approximate is obtained, but still not completely.
try_files $uri $uri/ /index.php?uri=$uri&$args;
if ($request_method = POST)
{
rewrite ^(.*)$ /index.php?uri=$uri;
}
}
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