0
I’m looking to remove the . php extension from my web pages.
Created a file . htaccess as below and put 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,is giving page not found. as below:
ERROR 404 - PAGE NOT FOUND
Thanks for the answer. But it didn’t work .
– Robson Freitas