Mostrare file PHP nel browser senza estensione .php tramite .htaccess
Se non Le piace www.nomeazienda.it/contact.php e preferisce mostrare come URL e link semplicemente www.nomeazienda.it/contact (mentre il file continua a chiamarsi contact.php), può impostarlo nel file .htaccess. Inserisca questo file nella directory public_html con il seguente contenuto. Naturalmente può farlo anche con i file .html: basta sostituire .php con .html.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
