I used the rewrite without RewriteBase before. This worked only on my development machine (Windows XP), neither on the test machine at Windows 2000 nor on the productive system (Gentoo Linux). This is also not the solution.

Andris Paikens schrieb:
Hi Matthias,

maybe You should remove RewriteBase from Your htaccess file?
Got this idea, because in previous versions there was need for
$router->setRewriteBase('/');

Now it is not needed anymore. Maybe that is reason.

Andris

On 22/12/06, Matthias Zitzmann <[EMAIL PROTECTED]> wrote:
Hi folks,

yesterday I moved my application from a patched 0.1.5 to 0.6.0. There
were a few changes I need to do in my View-Class (I'm using __get and
__set, if I extend Zend_View_Abstract, this won't work any longer). This
changes were done in about three hours. The bigger problem is, that the
routing doesn't work any more. I also used the RewriteRouter before
that, here is some code:

$routes    = array(
'form' => new Zend_Controller_Router_Route('form/:action/*', array('controller' => 'form', 'action' => 'index')), 'files' => new Zend_Controller_Router_Route('files/view/*', array('controller' => 'files', 'action' => 'view')), 'page' => new Zend_Controller_Router_Route(':page/*', array('controller' => 'index', 'action' => 'index'))
);

$controller     = Zend_Controller_Front::getInstance();
$router         = new Zend_Controller_RewriteRouter();

$controller->setRouter($router);
$router->removeDefaultRoutes();
$router->addRoutes($routes);
$controller->setControllerDirectory('app/control');
$controller->dispatch();


The most curious thing is, that now anything is redirected to the
'indexAction' of the 'indexController' - 'files' and 'form', too. Here
is my .htaccess:

RewriteEngine on
RewriteBase /
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php


Does anybody get an idea? It drives me crazy ...



Greets and thanks

Matthias



Reply via email to