Re: Server Move: Catch old details page url and forward to cake style url

2012-05-16 Thread heohni
Hi Mike, these urls /details.php?id=4863 are set in QR codes printed in a magazin. Now we plan to relaunch the new website made with cake. I want to catch these domains to forward them to the new cake-style target page. Therefore I need a way to lead the users to the requested target and not

Re: Server Move: Catch old details page url and forward to cake style url

2012-05-16 Thread rchavik
On Monday, May 14, 2012 7:08:36 PM UTC+7, heohni wrote: If I try this: (from the 2.0 book) Router::redirect( '/details*', array('controller' = 'qrcode', 'action' = 'redirect', array('persist' = true) )); You could try to use .htaccess to do this: RewriteCond

Re: Server Move: Catch old details page url and forward to cake style url

2012-05-16 Thread heohni
Hi, thanks, I will try! Which htaccess should I use, the one in /webroot/ Am Mittwoch, 16. Mai 2012 11:23:55 UTC+2 schrieb rchavik: On Monday, May 14, 2012 7:08:36 PM UTC+7, heohni wrote: If I try this: (from the 2.0 book) Router::redirect( '/details*', array('controller' =

Re: Server Move: Catch old details page url and forward to cake style url

2012-05-16 Thread heohni
I can answer this myself sorry! It works great! Thank you s much Am Mittwoch, 16. Mai 2012 11:47:43 UTC+2 schrieb heohni: Hi, thanks, I will try! Which htaccess should I use, the one in /webroot/ Am Mittwoch, 16. Mai 2012 11:23:55 UTC+2 schrieb rchavik: On Monday,

Re: Server Move: Catch old details page url and forward to cake style url

2012-05-15 Thread heohni
Please help!! -- 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

Re: Server Move: Catch old details page url and forward to cake style url

2012-05-15 Thread Mike Griffin
On Mon, May 14, 2012 at 1:08 PM, heohni heidi.anselstet...@consultingteam.de wrote: If I try this: (from the 2.0 book) Router::redirect(      '/details*',     array('controller' = 'qrcode', 'action' = 'redirect',     array('persist' = true) )); I get this message: The requested address 

Re: Server Move: Catch old details page url and forward to cake style url

2012-05-14 Thread heohni
If I try this: (from the 2.0 book) Router::redirect( '/details*', array('controller' = 'qrcode', 'action' = 'redirect', array('persist' = true) )); I get this message: The requested address *'/details.php?id=4863'* was not found on this server. What is wrong with my Router? --

Server Move: Catch old details page url and forward to cake style url

2012-05-08 Thread heohni
Hi, I am just about relaunching a website and they gave out tons of QR Codes with links like: www.domain.com/detail.php?id=1234 What can I do to catch all this domains having the details.php?Id= and forward this to (controller=detail action=index, 1234) Is there a way to handle this with

Re: Server Move: Catch old details page url and forward to cake style url

2012-05-08 Thread Điển vũ
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]

Re: Server Move: Catch old details page url and forward to cake style url

2012-05-08 Thread Thiago Belem
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