Unfortunately PHP-FPM, Nginx and Plesk do not work together overly well.

If you are getting a 404 error then please see the guide below and it will help you to resolve this.

There problem here is that you need to add the line

`try_files $uri $uri/ /index.php?$args;`

to:

location ~ /$ {
 index index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml;
}

in the file:


/var/www/vhosts/system/DOMAIN_NAME/conf/nginx.conf

 

Unfortunately adding the following under Plesk will not work because of the way Plesk configures nginx so this requires some manual changes.

===================================================================
location ~ /$ {
     try_files $uri $uri/ /index.php?$args;
     index index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml;
}
===================================================================

THE ABOVE WILL NOT WORK IF ADDED TO ADDITIONAL NGINX DIRECTIVES WITHIN PLESK

 

To resolve this issue follw these steps:

1. Enable PHP-FPM in Plesk and save the changes.

2. Log in via SSH and open the file: /var/www/vhosts/system/DOMAIN_NAME_HERE/conf/nginx.conf

3. Search for the following section with:

location ~ /$ {
     index index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml;
}

4. Modify it to look like:

location ~ /$ {

    try_files $uri $uri/ /index.php?$args;

    index index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml;

}

5. Restart nginx

 

You will now be able to use "pretty URLS" within Wordpress without getting a 404 error