Make WordPress Permalink work with Nginx just Add this to you virtualhost conf file in the area of location / {
try_files $uri $uri/ /index.php?$args;
location = /xmlrpc.php { return 444; } # protect against brute force attack
location ~ \.(zip|rar|exe)$ {
valid_referers none blocked www.imfiles.com imfiles.com;
if ($invalid_referer) {
return https://www.imfiles.com;
}
}