summaryrefslogtreecommitdiff
path: root/system/helpers/url.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/helpers/url.php')
-rw-r--r--system/helpers/url.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/url.php b/system/helpers/url.php
index 1bc81230..2641cf06 100644
--- a/system/helpers/url.php
+++ b/system/helpers/url.php
@@ -62,7 +62,7 @@ class url_Core {
if ($site_domain === '' OR $site_domain[0] === '/')
{
// Guess the server name if the domain starts with slash
- $base_url = $protocol.'://'.$_SERVER['HTTP_HOST'].$site_domain;
+ $base_url = $protocol.'://'.$_SERVER['SERVER_NAME'].$site_domain;
}
else
{