Problem with ssl in CI - 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: Problem with ssl in CI (/showthread.php?tid=11825) |
Problem with ssl in CI - El Forum - 09-24-2008 [eluser]dpgtfc[/eluser] I have tried the mod_rewrite and a force_ssl() function I found here, but nothing works. A project I am working on successfully utilizes the force_ssl function I found here, but it doesn't work on my shared hosting site. I currently use Hostmonster and for some reason when I try and use ssl it redirects me somehow. I don't know if this is CI or my host site. Here is what it does: My url works normally when I go to any other links, but when I try and go to https://mydomain.com/index.php/home/login/ it takes me to https://mydomain.com/~appache_user/folder/index.php/home/login. Now I have my system folder outside of www root (or in my host's case public_html), my path is something like /home/apache_user/public_html/folder/(index.php here). I am guessing the redirect is caused by my host, as it doesn't do it on a virtual development server I am working on in another project, and it doesn't do it at all on regular http. Any ideas? Problem with ssl in CI - El Forum - 09-25-2008 [eluser]dpgtfc[/eluser] So the problem is definitely with the shared hosting. With a regular call to https, my url is re-written with the ~apache_user/folder method. Of course without CI it displays normally, but since CI doesn't recognize the base path, all I get is a page not found error. |