I was wondering if there was a way to hide the .php
file extension with .htaccess.
I've seen quite a few websites do this, for example facebook on most of its pages does not show the .php
file extension.
For example I want all my url's to be:
instead of
EDIT
Inside my .htaccess
file I have the following code already:
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Do I just append
RewriteEngine On
RewriteRule ^(.*)$ $1.php
at the end of the file? Or how does it work?