Welcome Guest, Not a member yet? Register   Sign In
HTTPS
#9

I use it

PHP Code:
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
*/
// Possible hosts locally. You can add some if needed.
$config['host_dev'] = array('localhost''127.0.0.1''::1');

// Fill in the file of your project here when you develop locally.
$host_dev 'CI-AdminLTE';

// Fill in the domain name here when your project is online.
// Example : www.johndoe.com
//           johndoe.com
$host_prod 'your_domain.tld';

// WARNING: Do not modify the lines below
$domain = (in_array($_SERVER['HTTP_HOST'], $config['host_dev'], TRUE)) ? $_SERVER['HTTP_HOST'] . '/' $host_dev $host_prod;

$config['base_url'] = ( ! empty($_SERVER['HTTPS'])) ? 'https://' $domain 'http://' $domain
Reply


Messages In This Thread
HTTPS - by ignitedcms - 09-10-2018, 09:12 AM
RE: HTTPS - by Pertti - 09-10-2018, 11:34 AM
RE: HTTPS - by ignitedcms - 09-10-2018, 12:34 PM
RE: HTTPS - by php_rocs - 09-10-2018, 12:39 PM
RE: HTTPS - by ignitedcms - 09-10-2018, 12:43 PM
RE: HTTPS - by php_rocs - 09-10-2018, 01:19 PM
RE: HTTPS - by ignitedcms - 09-10-2018, 01:22 PM
RE: HTTPS - by Pertti - 09-10-2018, 02:12 PM
RE: HTTPS - by ecampait - 09-10-2018, 02:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB