I want to tream .php from every url
Like localhost/index.php ---> localhost/index
But I also want localhost/index/ to work too....
Here is the current code I am using
#for hiding.php extension
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteCond %{REQUEST_URI} !/$
RewriteRule ^(.*)/?$ $1\.php [NC]
############################-------- END ---------########################
Can anybody suggest the changes?