CodeIgniter Forums
base_url() and SSL - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: base_url() and SSL (/showthread.php?tid=6787)

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

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?

- 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: