Hi I am having a bit of trouble with routing.

Basically what I'm trying to achieve is a: www.mysite.com/username where
username is an alphanumeric string. The problem is that my route is catching
all requests. So even a request to an actual controller/action e.g.;
www.mysite.com/index/index will be routed as a username request.

Is it possible that if a request/url points to an actual
module/controller/action it should ignore the username route.

application.ini - routes

resources.router.routes.username.type = "Zend_Controller_Router_Route"
resources.router.routes.username.route = ":username/*"
resources.router.routes.username.defaults.controller = "profile"
resources.router.routes.username.defaults.action = "view"
resources.router.routes.username.reqs.username = "[a-z0-9-]+"

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Route-only-if-a-controller-action-does-not-exist-tp24514238p24514238.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to