0

This question already has an answer here:

I am having some problems trying to translate this to nginx, today I can't make my brain to work well and solve this!

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*)$   $1                 [L]

RewriteRule ^(.*)$   index.php?url=$1   [QSA,L]

marked as duplicate by MrWhite, Jenny D, kubanczyk, Ward May 27 at 14:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

I didn't fully understand the apache rule, but I ended up modifying a little bit the PHP code and made all work. Just sent all to index.php with an nginx rule and the process the urls there.

  • The question that I linked to above in comments shows the solution you would require to mimic these rules in Nginx. Whilst that other question has slightly different-looking Apache directives, the result is the same. – MrWhite May 26 at 21:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.