Skip to content

Make WordPress Permalink work with Nginx

  • This topic has 0 replies, 1 voice, and was last updated 1 year ago by Admin.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #192793
    Admin
    Administrator

    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; 
     }
    }
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.