Welcome Guest, Not a member yet? Register   Sign In
HTTP and HTTPS in one app
#1

Hi,

I am building an application where I need to use HTTPS for most of the of the application and HTTP for the rest of the application. My SSL Certificate is tied only to the subdomain MY (my.newapp.com). So https://my.newapp.com will be the secured part and http://www.newapp.com and http://newapp.com will be the unsecured part.

What changes would be needed in the various configuration files (HTACCESS, CONFIG.PHP, etc.)?

Any help would be appreciated!
Reply
#2

It would probably be easiest to push all requests to the supported subdomain (my.newapp.com) and then just make sure you're generating links correctly for http vs. https for the portions of the site which need it, or just push all of the traffic to https.

The main reason I say this is because the three different subdomains might work fine once you get your server configured properly (through .htaccess and/or other server configuration files), but CI will likely only generate links for one of the three subdomains (unless you setup three different applications with configurations for each of the base URLs).

On the other hand, I'm by no means an expert on server configuration. There could be any number of possible configurations that I'm overlooking which would make it much easier to support your environment without requiring additional configuration in CI itself.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB