Category Archives: WordPress

WordPress custom Nginx Rules

Plesk + Cpanel nginx directives for wordpress, this is the fastest formula we came up with. if (!-e $request_filename) { rewrite ^(.*)$ /index.php break; } rewrite /wp-config.php /forbidden last; rewrite /install.php /forbidden last; rewrite ^(.*)/uploads/(.*).php(.?) /forbidden last; rewrite /xmlrpc.php /forbidden last; location = /forbidden { deny all; } location = /nginx.conf { deny all; } […]