PDA

View Full Version : Separate 404s in IRM directories?


Jazz
11-18-1999, 10:47 AM
I've got a couple of IRMs, and want to have customized 404 pages within those directories. My main site 404 page works just dandy (on the rare occasion when it has to ;) ), but isn't appropriate for the IRMs, of course.

I have to confess, I haven't tried creating separate ones for these IRMs of mine yet; I just thought I'd ask first. Because a 404 page looks so straightforward and simple, I'm afraid I'm missing something. For example, if they're so darn simple, why don't all hosting services allow/encourage you to have customized 404s?

I guess I could've just tried it. I'm just thinking too hard, maybe...(and man, does that hurt!)

Jazz

Deb
11-18-1999, 11:00 AM
Yes you can do this via a .htaccess file :)

What you'll need to do is create a text file with the following inside it:

[nbsp][nbsp][nbsp][nbsp][nbsp][nbsp]ErrorDocument 404 /404irm.html

Replace 404irm.html with whatever the name of your 404 page will be inside the IRM directory.

Save the text file with the file name of .htaccess and upload it (in ASCII) to the IRM directory... voila -- Instant 404!

Links you may want to reference are:
http://www.aota.net/htaccess/index.php3
and
http://www.aota.net/Script_Installation_Tips/ascii.php3

Have fun!

Deb

Jazz
11-18-1999, 11:40 AM
Thanks, Deb! I suspected it wasn't as simple as it seemed...and I'm GLAD I didn't experiment first!

Jazz