location / {
root /var/www/;
index index.php;
if (-f $request_filename) {
break;
}
if (-e $request_filename)
{
break;
}
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php last;
break;
}
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
if (-f $request_filename) {
break;
}
if (-e $request_filename)
{
break;
}
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php last;
break;
}
}