httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Spinetti <m.spine...@pisa.iol.it>
Subject input filter ap_internal_redirect
Date Tue, 14 Aug 2007 10:44:55 GMT
I have a doubt about my input filter.
I'm writing an input filter which should filter the requests to my handler.
Only special types of requests should go to my handler.
So I'd like that my input filters, if the incoming request is not ok,  
does an internal redirect to a static page, without calling my handler.
I don't understand how to do it in my filter.
Is it ok if in my filter I inser:

if (redirect) {
    ap_remove_input_filter(f);
    ap_internal_redirect(static_page, f->r);
    return APR_SUCCESS;
}
 
Best regards


Marco




Mime
View raw message