Now the information in url can display with our without php extension. But am looking for some code that i can hide the extension so users cannot see it.
I tried with this cond
when i switch my cursor on a page it shows www.xyz.com/file.php was not found.
But when i remove my .php extension the page display.
But when a user clicks on some page it will show the same. How to redirect even if ,php comes an extension.
can you help.
May be this:
RewriteEngine on
RewriteBase /
RewriteRule ^(.+).php$ /$1 [R,L]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ /$1.php [NC,END]
U need to set mutliviews if so add this to the top of the htaccess file.
Options +MultiViews