location / {
  try_files $uri $uri/ /index.php?$args; # wp permalinks
  location ~ [^/]\.ph(p\d*|tml)$ {
    try_files /does_not_exists @php;
  }
}

nginx location snippet для WordPress на ISP Manager