Okay, I got it working by making a compromise, and redirecting user to my 404 page if he selected a non-existant link ... one final question:
How do I make my browser show the url where the script has redirected it into? Now the browser's url line says "http://www.b5itf-finland.org/redirect.cgi" ???
Edit: Add to that, on pages that I've gone into using the redirect script have "http://www.b5itf-finland.org/scripts" as their relative URL, so all relative href's on these pages had to be replaced with absolutes ... I'd like to use relative ones.
Part of the code here, just to clarify:
[ March 24, 2001: Message edited by: VJ ]