Last Updated: September 09, 2019
· joegardiner

Nginx config rule for WordPress


To add rewrite support for WordPress to the standard Nginx configuration file located here: /etc/nginx/nginx.conf

This is used as there is no .htaccess file for Nginx so you enable rewriting with the following.

Paste in the following...

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