• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue .htaccess file dose not works on plesk while it is working on local host

mnafullstack

New Pleskian
I have developed a website in php on local host xampp and now I've uploaded the website to the plesk hosting. Everything is working fine except the .htaccess file. Either the .htaccess file is not able to work with plesk server OR something else would be the issue.

Is there anybody who can tell me why the .htaccess file is not working on plesk hosting? My .htaccess inside code is here:

ErrorDocument 404 http://mysite.com/404.php

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

This code is working fine on local host but not on plesk server. Even it is not redirecting the 404 error to the 404 custom page.
 
Last edited:
I cannot see the proxy option in Plesk > Domains > domain.com > there I can't see the apache & nginx Settings.
Then how to resolve it if I can't see these options in my hosting?
 
Oh, do you have Plesk for Windows?
If I'm not mistaken, IIS doesn't support .htaccess file.
 
Back
Top