| Mã lệnh |
RewriteEngine on
RewriteOptions inherit RewriteRule (.*)\.htm[l]?(.*) $1.php$2 [nocase] |
To hide PHP, you need following php.ini settings
| Mã lệnh |
expose_php=Off
display_errors=Off |
and in httpd.conf
| Mã lệnh |
ServerSignature Off |
(min works, but I prefer off)
Ideally you need .htaccess abilities (check with your host) and use the lines below:
php_value register_globals "no"