Plesk

Redirection rules and other settings configured in the .htaccess file do not work on a website in Plesk for Linux

Symptoms

Cause

The option Proxy mode is turned off in Domains > example.com > Apache & nginx Settings > nginx settings

When the Proxy mode is disabled, Apache is turned off and the site will be handled by Nginx which doesn't work with .htaccess files

Resolution

Apply one of the following possible solutions:

Turn on the Nginx Proxy mode

  1. Log in to Plesk GUI

  2. Go to Domains > example.com > Apache & nginx Settings > nginx settings > Enable the option Proxy mode > Click OK to apply the changes

Convert Apache rules in .htaccess file to Nginx

  1. Log in to Plesk GUI

  2. Install the Plesk extension: htaccess to nginx

  3. Convert the content of .htaccess file to nginx additional directives in Domains > example.com > Apache & nginx Settings > Additional nginx directives > Click OK to apply the changes

Exit mobile version