1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-25 00:41:52 +02:00

Closes #5205 Custom domain for specific pages.

This commit is contained in:
camer0n
2024-03-05 16:35:18 -08:00
parent a0581bea20
commit 16d032cf73

View File

@@ -117,7 +117,7 @@ class e_url
e107::canonical('_SITEURL_');
}
if(empty($this->_config) || empty($this->_request) || $this->_request === 'index.php' || $this->isLegacy() === true)
if(empty($this->_config) /*|| empty($this->_request) || $this->_request === 'index.php'*/ || $this->isLegacy() === true)
{
return false;
}
@@ -141,6 +141,10 @@ class e_url
continue;
}
if((empty($v['domain']) && (empty($this->_request) || $this->_request === 'index.php')) || (isset($v['domain']) && ($v['domain'] !== $_SERVER['HTTP_HOST'])))
{
continue;
}
if(!empty($v['alias']))
{