How to enable rewrite rules for Plesk using NGINX

  1. Login to Plesk.
  2. Open the domain you need to update.
  3. Click on the “Apache and nginx settings” link.
  4. Scroll to the bottom to “Additional nginx directives” and add the following :
    if (!-e $request_filename)
    {
    	rewrite ^(.+)$ /index.php?q=$1 last;
    }
  5. Save
  • plesk, nginx, rewrite, rule
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Enable Nginx with PHP-FPM on Plesk

Nginx is supported with PHP-FPM which is a fast and reliable web server.Plesk Control Panel...

How to Enable all of the required ports of Plesk

If you found, the ports are closed of a Plesk server due to FirewallD, then run the following...

Plesk license getting revoked? Here's the solution

Some of our clients' complaints that their Plesk WebHost license getting revoked. So, here's the...

How to Install Plesk or Onyx on Linux CentOS?

Plesk is a popular website control panel, and it makes managing your website easy. Although it is...

AUG 7 Fix for DoS vulnerability in BIND DNS service

For CentOS, you will need to enable Continuous Release (CR) Repository to get this patch. Here's...