Skip to content

Instantly share code, notes, and snippets.

@torstenfeld
Created April 2, 2013 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torstenfeld/5292796 to your computer and use it in GitHub Desktop.
Save torstenfeld/5292796 to your computer and use it in GitHub Desktop.
/*
|--------------------------------------------------------------------------
| 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