[eluser]split[/eluser]
Hi PhilTem! Yes, I had a look at these lines too. The full code is:
Code:
// Set the base_url automatically if none was provided
if ($this->config['base_url'] == '')
{
if (isset($_SERVER['HTTP_HOST']))
{
$base_url = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off' ? 'https' : 'http';
$base_url .= '://'. $_SERVER['HTTP_HOST'];
$base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
}
else
{
$base_url = 'http://localhost/';
}
$this->set_item('base_url', $base_url);
}
and could be found in /system/core/config.php
Sadly I got no access to the server and I need to send changes to the server admin who have to update the files. I just like to do this as less as possible. My next step would be to set the base_url in /application/config/config.php, but the value should stay based on HTTP_HOST, that means I would use the same code as above and so I´m in doubt about the effectivity.
I´m asking mainly because I like to know if this could be caused by server configuration?
Thanks a lot!