Welcome Guest, Not a member yet? Register   Sign In
Codeigniter HTTPS (SSL) What is the "Best Practice"?
#6

(This post was last modified: 01-29-2016, 02:19 PM by mwhitney.)

I have separate conf files in Apache for http and https, with the https conf specifying:

Code:
<VirtualHost *:443>

and including the SSL configuration, but otherwise it's a fairly normal configuration for a CI site.

For some of my sites, the http conf file looks something like this:

Code:
<VirtualHost *:80>
    ServerName my.url.here
    Redirect 301 / https://my.url.here
</VirtualHost>

For other sites, I might have a normal http conf for the port 80 virtual host, or some portions of the site may be redirected to https. In all cases, I set the site's base_url to include the https://, so they end up using https once they click a link on the site, regardless of whether they were redirected in the first place.
Reply


Messages In This Thread
RE: Codeigniter HTTPS (SSL) What is the "Best Practice"? - by mwhitney - 01-29-2016, 02:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB