Recently installed a SSL Cert on our server/domain, and I am realizing now that CI doesn’t like https:// seems like anything that works http:// gets a 404 in https:// so but I have some views/controllers that don’t require the whole https:// bit. Such as pages when a user is not logged in to the service I am building up, that are viewable. Only thing I have come up with is configuring the base_url in config.php, which won’t work that well for me either, as we have multiple environments where the service runs through before it reaches a public viewable area.
By that I mean we have our dev area where each one of our devs has a separate sub domain with there current dev stack, working on what they are working on. Then we have a staging and QA area, as well as a beta area all before it will reach production.
So I am looking for ideas on how to handle all of this, and short of the base_url config I have no idea where to begin to make this an easy to manage solution.
I use a DEV, QA, and Production environment for my CodeIgniter site and all of them work fine with HTTPS. No special settings are required for HTTPS to work with it. Perhaps you could provide the URLs your are having trouble with?
Below is how I manage multiple subdomains.
In ‘/application/config/config.php’ set the base_url to auto-detect by leaving it empty:
I’m assuming your URLs are:
To manage different environments, open index.php in the root directory and add:
If you have a database, setup’/application/config/database.php’ to: