Rewrite PHP¶
location / {
index index.html index.htm index.php;
if (!-e $request_filename) {
rewrite /(.*)$ /index.php?uri=$1 last;
break;
}
}
location / {
index index.html index.htm index.php;
if (!-e $request_filename) {
rewrite /(.*)$ /index.php?uri=$1 last;
break;
}
}