Page 1 of 1

Second problem with Zend Framework re-routing

Posted: Wed Feb 13, 2008 2:25 am
by BornForCode
Hello

My drama is ZF for this week it seems. I made to work full default controllers:
http://house.bornforcode.com/index/index and
http://house.bornforcode.com/index/mesaj

But i have problems to make it work a module:
http://house.bornforcode.com/admin/index (a 500 error is triggered).

I add module in my application using the standard way:

Code: Select all

 
$front->setControllerDirectory(array(
            'default'=> 'application/default/controllers',
            'admin' => 'application/admin/controllers'
        ))
 
And my htaccess file is looking:

Code: Select all

 
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
 
Do you have any idea why this happens :banghead: :banghead: ? Thank you.

Re: Second problem with Zend Framework re-routing

Posted: Wed Feb 13, 2008 3:39 pm
by Christopher
Use the .htaccess from the Zend Framework manual.

Re: Second problem with Zend Framework re-routing

Posted: Thu Feb 14, 2008 1:39 am
by BornForCode
That one is not working on apache 1.3.33 :) gave me from the beginning a 500 error.

Re: Second problem with Zend Framework re-routing

Posted: Fri Feb 15, 2008 2:01 pm
by jmut
you already posted this problem once.
Why just didn't continue there?
Did you talk to hosting if really house.example.com is same as example.com/house
This clearly can have some issues with routing in ZF.
I suggested to check $_SERVER variable in both scenarious. What's the outcome?