CodeIgniter Forums
ssl issue in codeigniter??? help needed - 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: ssl issue in codeigniter??? help needed (/showthread.php?tid=28724)



ssl issue in codeigniter??? help needed - El Forum - 03-19-2010

[eluser]Zeeshan Rasool[/eluser]
Hi, i have an issue with ssl in CI. i am using shared ssl so how can i do this job in CI forms? here i found a helper which replace http to https but i need full path changed like mysite.com/member/login to my.server.com~site/member/login so how can i do this?
also if i access my site using my server direct path then images doesnt show.
Any help in using shared SSL?

Very Thankss to You !!!


ssl issue in codeigniter??? help needed - El Forum - 03-19-2010

[eluser]InsiteFX[/eluser]
Hi,

I did not write this it was written by SKunKbad...

I recently had the task of setting up some forms in a shared SSL environment. One of the first things I noticed was that I was being redirected back to the non-SSL environment due to a little URL rewrite I placed in an .htaccess file so that non-www prefixed requests would be rewritten as the www version. I fixed the issue by modifying the rewrite conditions before the actual rewrite rule. I thought this might help somebody someday, so check it out:

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.mywebsite\.com [NC]
RewriteCond %{HTTP_HOST} !^secure1.mywebhost.com [NC]
RewriteRule ^(.*) http://www.mywebsite.com/$1 [L,R=301]

Enjoy
InsiteFX


ssl issue in codeigniter??? help needed - El Forum - 11-29-2010

[eluser]Zeeshan Rasool[/eluser]
thanks for the tip dude Smile