I am using CodeIgniter 3 as a web platform and trying to import semantic-UI CSS into my page. I\'m doing so by using CodeIgniter\'s base_url() method in the hre
base_url()
More accurate and dynamic way
$root = "http://".$_SERVER['HTTP_HOST']; $root .= dirname($_SERVER['SCRIPT_NAME']); $config['base_url'] = $root;
Though you can still use port.