Wednesday, January 22, 2014

Re: Router redirect pass all parameters to another domian

As Reuben said - you will be far better off with a Web Server based redirect.
This way your application will not get called at all.



On Monday, 20 January 2014 23:49:09 UTC+2, gonzela2006 wrote:
Hello,

I want to use Router::redirect to redirect to another domain and pass all parameters to this domain

Example:
Redirect this url
http://domain-one.com/posts/view/1
to
http://domain-two.com/posts/view/1

I tried the following
Router::redirect( '/*', 'http://domain-two.com/', array('persist' => true) );
but it redirect to  http://domain-two.com/ without parameters.
Please advise

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: