From 16d032cf73592b6d0634901aaf05038d88cad0b1 Mon Sep 17 00:00:00 2001 From: camer0n Date: Tue, 5 Mar 2024 16:35:18 -0800 Subject: [PATCH] Closes #5205 Custom domain for specific pages. --- e107_handlers/application.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/e107_handlers/application.php b/e107_handlers/application.php index 135ce7370..af5912de0 100644 --- a/e107_handlers/application.php +++ b/e107_handlers/application.php @@ -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'])) {