0

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]
2
  • 1
    nginx.org/r/try_files May 25, 2019 at 19:25
  • 2
    What have you tried? Are you having trouble understanding the current Apache rules or writing the new Nginx rules?
    – MrWhite
    May 26, 2019 at 0:19

1 Answer 1

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.

1
  • 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, 2019 at 21:08

Not the answer you're looking for? Browse other questions tagged .