Search code examples
cakephproutesnamed-parameters

Route the default URL trailed with a named arg


I'm wondering how to correctly route a default controller/action when the url is trailed by a named arg.

I.E.: I want to route http://www.server.com/mode:full to http://www.server.com/users/index/mode:full

I tried Router::connect ('/:mode', array('controller'=> 'users', 'action'=> 'index')); but it's not working...


Solution

  • Sorry for that, it looks like it's independant from CakePHP. In fact this is Apache on Windows that recognise ':' as a logical drive and thus simply don't route the correct (at least the intended) URL.