I’m sure there are lots of resources for this, but here is a fairly robust one (WARNING: Don’t do what Mohammed did! I’ll tell you why in a second):
http://sajjadhossain.com/2008/10/27/ssl-https-urls-and-codeigniter/
So, what’s wrong with the approach? He’s editing core files which is a big no no. He should be extending the functionality of the core files. For example, here are the two files I now have in my site:
/application/helpers/MY_url_helper.php
/application/libraries/MY_Config.php
Then, I placed the following code in each of those files, respectively:
Read the rest of this entry »

