you use the cake router /app/config/routes.php
if you want to redirect to specific action in controller
Router::connect('/about_me', array('controller' => 'pages', 'action'
=> 'about_me'));
or if you want to handle all in one action
Router::connect('/:ident', array('controller' => 'pages', 'action' =>
'show_page'), array('pass' => array('ident'));
read more:
cakephp 1.3: http://book.cakephp.org/1.3/en/view/945/Routes-Configuration
cakephp 2.x: http://book.cakephp.org/2.0/en/development/routing.html
On Jun 14, 3:15 am, pxm <[email protected]> wrote:
> Hi,
>
> A client recently requested me to migrate his website from using Wordpress
> to CakePHP. But I have to make sure that the URLs is still the same as his
> Wordpress site. So I am now having problems since the urls are like this:
>
> Wordpress:
> domain.com/*about-me*
>
> CakePHP:
> domain.com/*about_me*
>
> Somehow I need help even just to redirect it to the _ urls.
>
> I tried with .htaccess, but my efforts didn't seem to work.
>
> Thanks!
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php