Need help? Call us on 1300 789 260

How to enable rewrite rules for Plesk 12.5 with nginx

Difficulty: Intermediate


  • Plesk 12.5 Login details


If you have your Plesk 12.5 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.


  1. Login to Plesk and select the domain you need to update.
  2. Click on the "Apache and nginx settings" link:
    Plesk 12.5 - Apache and nginx settings
  3. Scroll right to the bottom and add the following to "Additional nginx directives":
    if (!-e $request_filename)
    	rewrite ^(.+)$ /index.php?q=$1 last;
  4. Click OK to save and apply.
  5. You can now login to WordPress (or similar) to enable Permalinks.
Was this article helpful? Yes No

Having trouble? We’re here to help!

We’ve built our company with a serious focus on quality service. Feel free to give us a call!

1300 789 260