Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
| If this is not set then CodeIgniter will guess the protocol, domain and
| path to your installation.
|
*/
if (array_shift(explode(".",$_SERVER['HTTP_HOST'])) === 'secure') {
$ssl_set = "s";
} else {
$ssl_set = "";
}
$config['base_url'] = 'http' . $ssl_set . '://' . $_SERVER['HTTP_HOST']. '/beachapp2/app/';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.