• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue .htaccess not working

Asentrix

New Pleskian
No matter what I do, the htaccess will not work.
I'm trying to configure rewrite rules and it absolutely doesn't work, it's like it's not recognizing anything I put in the htaccess
I tried adding code so all .php extensions on my site are hidden in the URL and it ignores it completely:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

I also used the htaccess to nginx extension and converted my htaccess to nginx and that doesnt work either
YES proxy mode is turned on.

This issue is happening on both plesk servers I own, both are different versions and months apart in updates.
 
In order to find out if .htaccess is recognized I suggest to first put a line into it that is definitely wrong so that it causes a 500 error. Like just some random string "cdfghjkl". Is the website still responding in that case? Or does it deliver the expected 500 error?
 
Back
Top