example.com/home.php <– file available and Working without .php extension
example.com/home <– Working
example.com/home1.php <– File not exist showing 404 error mentioned in htaccess
example.com/home1 <– The file does not exist, and it shows “File not found” . htaccess rule not working here
.htaccess file
RewriteEngine On
DirectoryIndex home.php
Options -Indexes
Options -MultiViews
Options +FollowSymLinks
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
# RewriteRule ^([^.]+)$ $1.html [PT,L]
RewriteRule ^([^.]+)$ $1.php [PT,L]
ErrorDocument 404 http://example.com/404.php
ErrorDocument 403 http://example.com/403.php