# Redirect killing dispatch.cgi

**URL:** <https://www.ruby-forum.com/t/redirect-killing-dispatch-cgi/55273>\
**Category:** Rails\
**Created:** [March 18, 2006, 9:54pm UTC](https://www.ruby-forum.com/t/redirect-killing-dispatch-cgi/55273 "2006-03-18T21:54:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [March 18, 2006, 9:54pm UTC](https://www.ruby-forum.com/t/redirect-killing-dispatch-cgi/55273/1 "2006-03-18T21:54:34Z")

</div>

hi, having a maddening problem with a redirects between controllers.

app is working fine on my two local machines, a mac and a pc, with  
either  
webrick and lighttpd/cgi on either machines.

i move it to my hosting provider and try to get it working with apache +  
cgi,  
most of it works, but it fails at a specific spot, and causes  
dispatch.cgi to  
hang indefinitely. nothing shows up at all in the rails logs, which  
makes me  
think it might be an apache or .htaccess issue. i have .htaccess set up  
for  
dispatch.cgi.

it hangs on a redirect\_to call – i see the redirect happen in the logs,  
then no  
sign it ever makes it to the controller/method it’s redirecting to.  
other  
redirects in the app work fine, but this one, unlike the others,  
redirects from  
one controller to another.

i found a post elsewhere, which describes a similar problem. per what’s  
said in  
that post, i tried removing all the logging statements in the relevant  
methods  
of my app, to no avail. i think that might be a red herring, but who  
knows.

if anyone has any ideas, i’d be grateful. been banging my head on this  
for days,  
and it’s driving me crazy.

the post w/similar issue:  
[http://forums.asmallorange.com/index.php?showtopic=5880&hl=](http://forums.asmallorange.com/index.php?showtopic=5880&hl=)

* * *

This message was sent using IMP, the Internet Messaging Program.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [March 18, 2006, 10:49pm UTC](https://www.ruby-forum.com/t/redirect-killing-dispatch-cgi/55273/2 "2006-03-18T22:49:23Z")

</div>

what is the code for redirect that causes a problem?
