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'
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.
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value.