CodeIgniter Forums
Redirecting to secure URL - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Redirecting to secure URL (/showthread.php?tid=5649)



Redirecting to secure URL - El Forum - 01-29-2008

[eluser]codelearn[/eluser]
Anybody got any idea how to setup a redirect to a secure URL?

I need redirect('home') to take people to https://www.domain.com/home instead of just http.

Thanks.


Redirecting to secure URL - El Forum - 01-29-2008

[eluser]Rick Jolly[/eluser]
http://ellislab.com/forums/viewthread/68036/
http://ellislab.com/forums/viewthread/48344/


Redirecting to secure URL - El Forum - 01-29-2008

[eluser]codelearn[/eluser]
Awesome... thanks Rick.

EDIT: The solution is header("Location: $newurl"); for anyone interested.