![]() |
Hide .php extension using .htaccess file
Hi,
I am trying to hide the .php on all my pages using the .htaccess file. I have seen a number of tutorials online all using the following code, however it isn't working for me. When I go to the page without putting .php it goes to 'error 404 not found' PHP Code:
|
PHP Code:
|
You could always change the file extensions to .html instead and then use this in your htaccess:
AddType application/x-httpd-php .html That will make apache use php for .html extensions. You could also use any other extension such as .ico, .ttt, .any just to completely confuse any potential attacker but note that they may still get the server specs from a head request and if it only reveals php and no perl then it may still give the game away. |
| All times are GMT +1. The time now is 07:16 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.