Hi!
I have created a 404-handler in perl, that is triggered by the following Apache rule:
ErrorDocument 404 /cgi-bin/errorpage.pl
The errorpage.pl is supposed to redirect the user to another page (condition-based, html-pages gets redirected to one location, images to another location, etc. Conditions are not included below):
...
print "Location: /cgi-bin/myapplication.pl?type=webpage&code=404\n\n";
...
This isn't working, and gives us a blank page. We suspect that this is because of that 404 is signalled before location is printed.
Is it possible to solve this task in a similar manner?