Hi Robert, It just looks like your module/controller was not found. So Zend MVC takes the default module/controller. It looks not like a rewrite problem to me. Probably you have not the same base path or modul directory on your dev-server. Cheers, Leo
________________________________________ Von: robert mena [mailto:[EMAIL PROTECTED] Gesendet: Montag, 30. Juli 2007 23:30 An: [email protected] Betreff: [fw-general] Unable to get the correct controller/action Hi there, I am using ZF but I am facing problems in my production server. In my development server everything is fine. My I am accessing a url foo.com/projectX/contact/chat but it always goes to index/index. My rewrite rule RewriteEngine on RewriteBase /projectX/ RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php An my rewritelog shows MY_IP - - [30/Jul/2007:17:31:16 --0600] [foo.com/sid#9606b88][rid#ad307b0/initial] (2) init rewrite engine with requested uri /projectX/contact/chat MY_IP - - [30/Jul/2007:17:31:16 --0600] [ foo.com/sid#9606b88][rid#ad307b0/initial] (1) pass through /projectX/contact/chat MY_IP - - [30/Jul/2007:17:31:16 --0600] [ foo.com/sid#9606b88][rid#ad307b0/initial] (2) [per-dir /var/www/html/foo.com/projectX/] rewrite contact/chat -> index.php If I understood correctly the var_dump of the controller object tells me it is using the index controller and index action... ... ["_dispatcher:protected"]=> object(Zend_Controller_Dispatcher_Standard)#10 (10) { ["_curDirectory:protected"]=> NULL ["_curModule:protected"]=> string(7) "default" ["_defaultAction:protected"]=> string(5) "index" ["_defaultController:protected"]=> string(5) "index" ["_defaultModule:protected"]=> string(7) "default" ["_frontController:protected"]=> NULL ["_invokeParams:protected"]=> array(0) { } ["_pathDelimiter:protected"]=> string(1) "_" ["_response:protected"]=> NULL ["_wordDelimiter:protected"]=> array(2) { [0]=> string(1) "-" [1]=> string(1) "." } } What am I doing wrong?
