diff --git a/application/controllers/skylight.php b/application/controllers/skylight.php index d842cbfc..0a12cca9 100644 --- a/application/controllers/skylight.php +++ b/application/controllers/skylight.php @@ -172,6 +172,12 @@ function _load_site_config() { // remove test. $hostname = substr($hostname, 5); } + // strip out the www if it's there + else if(strpos($_SERVER['HTTP_HOST'], "www.") !== false) { + // will be www.hostname + // remove www. + $hostname = substr($hostname, 4); + } // else just use the hostname }