Nginx Permalink 404

Well after fixing the MySQL error, I noticed my permalinks weren’t being handled properly by Nginx.

A little googling brought me here.

I appended the following to the offending website config file:

...
location / {
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
}
...

and restarted Nginx.

So far so good 🙂

Edit #1: Add code block location