Symptoms
-
Redirection rules and other settings defined in
.htaccess
file are not applied on a website in Plesk for Linux -
It is not possible to choose PHP handler served by Apache in Plesk > Domains > example.com > PHP settings;
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
-
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
-
Install the Plesk extension: htaccess to nginx
-
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