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