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 %{QUERY_STRING} ^id=([0-9]*)$
RewriteRule ^details.php /qrcode/redirect/%1? [R=permanent,L]
This will redirect details.php?id=1 to /qrcode/redirect/1.
You might want to use the actual 'view' url instead of doing double
redirection.
>
>
--
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