CodeIgniter Forums
base_url() and SSL - 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: base_url() and SSL (/showthread.php?tid=6787)



base_url() and SSL - El Forum - 03-11-2008

[eluser]jdgiotta[/eluser]
We've set up a SSL for user verification and up until now I've been using base_url() to give me the application path for the form submission.

However, now I need to submit the form a HTTPS URL. Can base_url() still be used or is there a better solution?

Cheers,
- John G


base_url() and SSL - El Forum - 03-11-2008

[eluser]Rick Jolly[/eluser]
You can use base_url and change it in config.php to add https: when the protocol is https. See this thread for examples: http://ellislab.com/forums/viewthread/60181/