Created
April 2, 2013 14:48
-
-
Save torstenfeld/5292796 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
|-------------------------------------------------------------------------- | |
| 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