mirror of
https://github.com/e107inc/e107.git
synced 2025-07-26 01:11:28 +02:00
Closes #5205 Custom domain for specific pages.
This commit is contained in:
@@ -117,7 +117,7 @@ class e_url
|
|||||||
e107::canonical('_SITEURL_');
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -141,6 +141,10 @@ class e_url
|
|||||||
continue;
|
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']))
|
if(!empty($v['alias']))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user