Cobra Forum

Plesk Panel => Webserver => Topic started by: mahesh on Jan 02, 2025, 06:54 AM

Title: How to keep .htaccess rules after switching PHP handler from Apache to nginx
Post by: mahesh on Jan 02, 2025, 06:54 AM
Question
How to keep .htaccess rules after switching PHP handler from Apache to nginx in Plesk?
Answer
Prior to switching to nginx:

(https://pix.cobrasoft.org/images/2025/01/02/mceclip0.png)
4.Insert the content of .htaccess file and press Convert to nginx button
5.Click OK to save the changes
Note: a featue request to automate htaccess to nginx directives conversion is available here. Feel free to vote for it to be implemented in future Plesk releases.