Page is a not externally linkable
- Code, Content, and Presentation
-- Perl Server Side CGI Scripting
---- Displaying a custom page if procedure fails


sugarkane - 2:57 pm on Jan 20, 2004 (gmt 0)


I can't see a way of doing it direct from your script, as by the time the error page appears control has been passed from your script to the server.

However, .htaccess files can be placed in any directory and will apply only to that directory and any below it. Maybe you could set up a custom 404 page just for your cgi-bin, with the direct download link on it?


Thread source:: http://www.webmasterworld.com/perl/3426.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com