404 messages

They have: 153 posts

Joined: Jun 1999

I am wondering if there is a script out there that will make it so my 404 page will show up instead of that default one for IE 5.

They have: 58 posts

Joined: Jul 2000

This is easy. Create a file called ".htaccess" with instructions to the server. You can specify the 404, 403, and 500 errors here, plus set .html files to be parsed as .shtml files.

Here is my .htaccess file, feel free to modify it:

ErrorDocument 404 <a href="http://www.activewm.com/misc/notfound.html" class="bb-url">http://www.activewm.com/misc/notfound.html</a>
ErrorDocument 403 <a href="http://www.activewm.com/misc/notallowed.html" class="bb-url">http://www.activewm.com/misc/notallowed.html</a>
ErrorDocument 500 <a href="http://www.activewm.com/misc/servererror.html" class="bb-url">http://www.activewm.com/misc/servererror.html</a>

Options Indexes FollowSymLinks Includes
AddType application/x-httpd-cgi .cgi
addType text/x-server-parsed-html .html
addType text/x-server-parsed-html .htm
'

Most of this is self explanitory.

Now save this as ".htaccess" with nothing before the ".". Upload it to your root directory for documents, and you should be set.

Good Luck!

-Aidan Bahta
[email protected]

ActiveWM.com - The place for the Active Webmaster.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.