I am having trouble writing a route to direct an old /pages url to a
newer controller url.
The old pages url looks like this..
www.url.com/pages/tech_tips
The url I want to route this to looks like this..
www.url.com/techtips
I have tried different ways of writing the route and one of my
attempts is..
$Route->connect('/pages/tech_tips', array('controller' => 'techtips',
'action' => 'display', 'index'));
$Route->connect('/pages/*', array('controller' => 'pages', 'action' =>
'display'));
Not sure what I am doing wrong here. Do I need to alter the pages
controller directly to get this to work?
I am using CakePHP 1.1.
Thanks!
Brian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---