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

Mark Stosberg mark at summersault.com
Wed Dec 1 14:16:31 EST 2010


On 11/26/2010 04:07 PM, Gurunandan R. Bhat wrote:
> 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? 

Could you share a reduced-case code example that produces the bad behavior?

   Mark



More information about the cgiapp mailing list