I am using Codeigniter 3.1.0 which latest now. I have set base_url
in config.php as
$config['base_url'] = 'http://example.com/kp_clients/';
When I print base_url()
. It is showing Server IP instead what I set.
http://173.x.xx.21/kp_clients/
Now what I am doing wrong here. Any idea?
I have autoloaded all required library
$autoload['helper'] = array('url');
and its working fine in local but stoppped working in live server
NOTE: base_url() function not working in codeigniter
I have checked this. This is because not load url
helper. I have clearly mentioned in my question that I have autoloaded the helper. Still its showing IP instead what I am setting