Add the following to your nginx.conf file in your "location / {" section
if (-f $request_filename) {
break;
}
if (-d $request_filename) {
break;
}
rewrite . /index.php;
eg:
location / {
root /var/www;
index index.php index.html index.htm;
if ($request_uri ~* ".(ico|css|js|gif|jpe?g|png)\?[0-9]+$") {
expires max;
break;
}
if (-f $request_filename) {
break;
}
if (-d $request_filename) {
break;
}
rewrite . /index.php;
}

The article has been updated successfully.