Re: Use routes to permanently redirect?

2008-05-30 Thread francky06l

You can set it in the .htaccess

On May 30, 7:09 pm, Luke <[EMAIL PROTECTED]> wrote:
> I have the following route:
>
> Router::connect('/newrv.cfm', array('controller' => 'rvs', 'action' =>
> 'index', 'new'));
>
> Is it possible to do this, but issue a 301 and redirect to the correct
> url? Right now it does the right thing, but no 301 and it stays at /
> newrv.cfm in the location bar. Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Use routes to permanently redirect?

2008-05-30 Thread Luke

I have the following route:

Router::connect('/newrv.cfm', array('controller' => 'rvs', 'action' =>
'index', 'new'));

Is it possible to do this, but issue a 301 and redirect to the correct
url? Right now it does the right thing, but no 301 and it stays at /
newrv.cfm in the location bar. Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---