tags:

views:

14

answers:

0

I would like to call ap_internal_redirect from within my Apache 2.0 module that is set up as a check_user_id hook, so that I can return a different page under some error scenarios.

Following the documentation in the Apache header, I follow the call to ap_internal_redirect by returning OK. However, this still leads to the authorization phase being called and, in the case, where I redirect to a CGI script, the browser ends up receiving both the output of the script and the originally requested web page!