PDA

View Full Version : htaccess and PHP


Pennimus
07-27-2005, 09:09 PM
Figured I might as well make it a nice round 3 questions today ;)

.htaccess and custom error pages - this works when a bad .html request is made, but not for .php files that don't exist - instead I get my hosts generic error message. Is there a way to have my own error page show for failed php requests?

Also, I've read somewhere that it's a good idea to 'disguise' your php pages as html using .htaccess due to some security issues. Is this true? If so why, and how do I use .htaccess to do this?

Thanks

mrruben5
07-27-2005, 09:33 PM
For the second question, you are going to need mod_rewrite. A search on google should give you plenty of results.