Hi, I understand that by default Zend Framework uses a route definition of
:module/:controller/:action. As a result, if I have a domain called
http://domain.com, the following urls will dispatch to the indexAction of
the IndexController of the default module:

http://domain.com/default/index/index
http://domain.com/default/index
http://domain.com/index/index
http://domain.com/index
http://domain.com

I want to keep the default router and default route, but I only want users
to access the index controller / index action by typing http://domain.com
and not any of the other possible urls. Does anybody know how this can be
accomplished, if at all?

So far, the solution that I have in mind is to add a check in my
indexAction() function of my IndexController so that if the
$_SERVER['REQUEST_URI']  is not '/', then redirect to
ErrorController::errorAction(). 

Any help will be appreciated. - Paul
-- 
View this message in context: 
http://www.nabble.com/http%3A--domain.com-index-index-vs.-http%3A--domain.com-tp22277532p22277532.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to