Welcome Guest, Not a member yet? Register   Sign In
Redirect to another URL
#2

[eluser]Randy Casburn[/eluser]
Hi jigen7,

The CI redirect function will only work for 'local' uri segments (as you found out) ;-)

So you have two choices:

1) use raw PHP
Code:
header("Location: http://google.com, TRUE, 302");

or 2) use the CI Output Class

Code:
$this->output->set_header("Location: http://google.com, TRUE, 302");
Hope this helps,

Randy


Messages In This Thread
Redirect to another URL - by El Forum - 10-24-2008, 09:40 PM
Redirect to another URL - by El Forum - 10-24-2008, 09:55 PM
Redirect to another URL - by El Forum - 10-24-2008, 10:48 PM
Redirect to another URL - by El Forum - 10-25-2008, 02:09 AM
Redirect to another URL - by El Forum - 10-25-2008, 04:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB