0

I have developed a website in PHP on localhost within XAMPP and now I've uploaded the website to the plesk hosting. Everything is working fine except for 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://*****/404.php

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

This code is working fine on localhost but not on plesk server. Even it is not redirecting the 404 error to the 404 custom page.

biesior
  • 55,576
  • 10
  • 125
  • 182
Muhammad Noman
  • 155
  • 1
  • 5
  • 12

0 Answers0