[cgiapp] Calling redirect under CA::Dispatch and mod_rewrite

Gurunandan R. Bhat guru at informationmatters.in
Fri Nov 26 16:07:53 EST 2010


Hi,

I am moving my application to work under CA::Dispatch and using
mod_rewrite to hide the dispatch script (index.cgi) from the URL. 

I am using rewrite rules .htaccess copy-pasted (without change) from the
CA::Dispatch man page and I am getting some very strange results when I
try to use redirect() with the CAP::Redirect plugin. Here is what I
find:

1. Most redirects give me a 302 (Document Moved) with the text: "The
Document has moved <a href="App::User=HASH(0x170ec98)">here</a>"
2. Some redirects give me a page with valid HTML but with two headers
the last being the 302 page (example above in 1.)

Is there something about using redirects under CA::Dispatch that I am
missing? 

Thank you.




More information about the cgiapp mailing list