• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with ssl in CI

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/folde...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?

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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.