Customize Errors by Editing .htaccess File

Jun 30

Editing the error documents is as easy as 400, 401, 403!

You’ll need the following ingredients to cook this well.

Your favorite text editor
Access to create a .htaccess file on your server.
A little creativity
A little love

The first thing to do is make sure that you can create the .htaccess file on your server.

open your favorite text editor and enter the following (we will go through this after, but no time wasting your time if you can’t write the file):

order allow,deny
deny from all

ErrorDocument 404 /errordocs/error404.htm

If possible save the file as .htaccess, if your computer complains instead save the file as htaccess.txt.

Now send this to your root of your server (Although you can’t see it my file is at http://wbmny/.htaccess)

If you are using command line ftp use:

rename htaccess.txt .htaccess

Otherwise just rename the file your normal way.

Now