Second problem with Zend Framework re-routing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
BornForCode
Forum Contributor
Posts: 147
Joined: Mon Feb 11, 2008 1:56 am

Second problem with Zend Framework re-routing

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Second problem with Zend Framework re-routing

Post by Christopher »

Use the .htaccess from the Zend Framework manual.
(#10850)
BornForCode
Forum Contributor
Posts: 147
Joined: Mon Feb 11, 2008 1:56 am

Re: Second problem with Zend Framework re-routing

Post by BornForCode »

That one is not working on apache 1.3.33 :) gave me from the beginning a 500 error.
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Re: Second problem with Zend Framework re-routing

Post 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?
Post Reply