I would like to "convert" this rules into an nginx rule. I think the location block is the right place, but my solutions doesn't work.
Options -Indexes
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/public%{REQUEST_URI} -f
RewriteRule ^(.*)$ public/$1 [QSA,END]
RewriteCond %{REQUEST_FILENAME} !index\.php
RewriteRule ^(.+)$ index.php?route=$1 [QSA,L]
I tried this
location / {
rewrite ^(.*)$ /public/$1;
rewrite ^(.+)$ /index.php?route=$1 break;
}