How can I have CodeIgniter load specific pages using SSL? I have an apache2/mode_ssl server. mod_ssl uses a different document root than non-secure
the solution that came to my mind is to use str_replace() like so
$base_url_str = base_url();
$secure_base_url = str_replace("http","https",$base_url_str );
whenever I need a secure location , i use $secure_base_url instead of base_url(), so let's say your base_url() is http://www.example.com then $secure_base_url will be https://www.example.com