Welcome Guest, Not a member yet? Register   Sign In
Redirect to absolute URL
#1

[eluser]maesk[/eluser]
Hi,

the URL Helper's redirect() function does a header redirect to a local URI, that is a relative URL. Sometimes, however, I'll have to redirect to an absolute URL, for example when I have an optional number of parameters for my controller. Should I just use

Code:
header('Location: http://www.example.com/');

for these cases or is there a CI specific method to do this?


Messages In This Thread
Redirect to absolute URL - by El Forum - 12-09-2008, 07:59 AM
Redirect to absolute URL - by El Forum - 12-09-2008, 08:04 AM
Redirect to absolute URL - by El Forum - 12-09-2008, 08:17 AM
Redirect to absolute URL - by El Forum - 12-09-2008, 08:23 AM
Redirect to absolute URL - by El Forum - 12-09-2008, 08:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB