what is the entry in the apache error.log?
2008/2/4, Łukasz Kazimierz Bandzarewicz <[EMAIL PROTECTED]>: > > Without mod_rewrite you can't execute ZF application. > I forgot mention that, if I change redirect code to: > > if (isset($_SERVER['HTTP_REFERER'])) { > $previousUrl = $_SERVER['HTTP_REFERER']; > } > else { > $previousUrl = BASE_URL; > } > $this->_redirect($previousUrl); > > script works on both servers. > Any ideas? > > On 04/02/2008, Tobias Gies <[EMAIL PROTECTED]> wrote: > > > > most likely the problem is that mod_rewrite is not enabled on the > > production server. enable it (or make your admin do it) and you should be > > good to go. > > > > Best regards, > > Tobias > > > > 2008/2/4, Łukasz Kazimierz Bandzarewicz <[EMAIL PROTECTED]>: > > > > > > Hi. > > > > > > It wont be a pure Zend Framewerok issue. > > > I have problem with apache's 500 Internal Error on several production > > > servers. > > > > > > For example. > > > This code works on my localhost machine but on production server it > > > rises 500 Internal Error: > > > > > > // SomeController.php > > > function doSomethingAction() { > > > $this->_redirector->gotoRouteAndExit(array('id' => $quiz_id), > > > 'quiz_info'); > > > } > > > > > > // SomeRouters.php > > > $route = new Zend_Controller_Router_Route( > > > 'quiz/info/:id', > > > array( > > > 'module' => 'index', > > > 'controller' => 'quiz', > > > 'action' => 'show' > > > ) > > > ); > > > $router->addRoute('quiz_info', $route); > > > > > > During several experiments I've figured out that it produces some > > > infinite loop (something like redirections chain). > > > > > > On both machines I have standard .htaccess file: > > > > > > RewriteEngine on > > > RewriteRule !\.(js|ico|gif|jpg|png|swf|css|html)$ index.php > > > > > > Where is the bug? > > > > > > Thanks for help, > > > Łukasz > > > > > > > >