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.
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: