Hi,

from a relaunch I have many old links in google which all land on a
404 page and I would like to redirect them to the new homepage. What
do I have to do when I want to catch all of these links with this file
name:

/search.php?anylongquerystring

to redirect it to the homepage?

I tried this:
Router::connect('/search*', array('controller' => 'pages', 'action' =>
'display', 'home'));

But nothing happen, the links still go to the 404 page.

What can I do better?

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to