CodeIgniter Forums
base_url config from 2.x breaking change than 2.1.x - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 2.x (https://forum.codeigniter.com/forumdisplay.php?fid=18)
+--- Thread: base_url config from 2.x breaking change than 2.1.x (/showthread.php?tid=63625)



base_url config from 2.x breaking change than 2.1.x - mrlai_1102 - 11-20-2015

I'm using old 2.1.x version, config file set as below
PHP Code:
$config['base_url']    = ''
 In lastest 2.x version, when i set it is empty, it only use ip address in my url instead of domain name with older version
Along time i dont work with PHP and how we need set this config value instead of default
king


RE: base_url config from 2.x breaking change than 2.1.x - kenjis - 11-20-2015

To avoid Host header injections.
See http://www.codeigniter.com/userguide2/installation/upgrade_226.html