Skip to content

Commit

Permalink
Re-add URL detection because of faulty CodeIgniter detection after 1.…
Browse files Browse the repository at this point in the history
…4.8 release
  • Loading branch information
Kovah committed Aug 1, 2016
1 parent 797a519 commit 6c1cb13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
| path to your installation.
|
*/
$config['base_url'] = '';
$config['protocol'] = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://');
$config['base_url'] = $config['protocol'] . ($_SERVER['HTTP_HOST'] ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']) . URL_SUBFOLDER;

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 6c1cb13

Please sign in to comment.