Last Updated: September 09, 2019
·
1.169K
· joegardiner

Nginx config rule for WordPress

Picture

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;
}