PDA

View Full Version : How to configure 404 for .htacces


jag
05-16-2006, 09:31 AM
Is there any code for configuring 404 for .htacces. I also heared if we config .htaccess it is not secure. Are they right ?

Friends help me in this issue..

Thanks

JAG

David Wallace
05-16-2006, 12:02 PM
First you have to have a custom arror page in place. Let's say you name it 404.html.

Then you place the following in your .htaccess file:

ErrorDocument 404 /404.html

This is providing that the 404.html page resides in your root directory.

jag
05-17-2006, 01:55 AM
I heared .htacces are not sercure for other files and server. Is it soo?

Jag