Using .htaccess we can have “friendly” URLs
That meaning if a visitor goes to yoursite.com/guestbook it will load the content of yoursite.com/guestbook.php/html depending on the choice picked.
There are various other methods to do this also, if you’ve got a favourite feel free to add below!
Removal of PHP extension via .htaccess
# 000webhost Fire up PHP file without filename extension
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php
Removal of HTML extension via .htaccess
# 000webhost Fire up HTML file without filename extension
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html
The same code can be modified to use for any file i.e. .htm