Overview
If you have your Plesk server configured to use nginx with PHP-FPM, you may require a configuration change in order to allow URL rewrites (“Permalinks” in WordPress) to display neat URL’s. This is also required for other PHP platforms such as Magento. With an Apache based system, this was normally set via the .htaccess file. However, nginx doesn’t read this file so it must be added directly into the Plesk configuration.
This article will is applicable to Plesk 12.5, Plesk Onyx and Plesk Obsidian.
Instructions
- Login to Plesk and select the domain you need to update.
- Click on the “Apache and nginx settings” link:
- Scroll right to the bottom and add the following to “Additional nginx directives”:
if (!-e $request_filename) { rewrite ^(.+)$ /index.php?q=$1 last; }
- Click OK to save and apply.
- You can now login to WordPress (or similar) to enable Permalinks.