CakePHP 2.0 has Router::redirect()

http://book.cakephp.org/2.0/en/development/routing.html#redirect-routing


--
***Thiago Belem*
Desenvolvedor
Rio de Janeiro - RJ - Brasil

*Assando Sites* - Curso online de *CakePHP*
assando-sites.com.br <http://goo.gl/b1EEd>

thiagobelem.net
[email protected]

*Skype / gTalk **»* thiago.belem.web
*LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt



On Tue, May 8, 2012 at 12:46 PM, Điển vũ <[email protected]> wrote:

> Put this code ( modify it fit with your code ) in boostrap.php
>
>          if (preg_match('/details\.php?id=(.*)/', $_SERVER['REQUEST_URI'],
> $match) !== false) {
>                        if (isset($match[1])){
>                             $location = '/details/index/' . $match[1]
>                              header('Location: ' . $location, true, 301);
>                              die();
>                        }
>             }
>
>  --
> 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
>

-- 
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

Reply via email to