I'm trying to remove the .php extension from my web pages.
I created a .htaccess file as below and put it in the root directory
DirectoryIndex index.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
When I try to access the page by taking the extension, it is giving page not found. as below:
ERROR 404 - PAGE NOT FOUND