Skip to content

Commit

Permalink
Closes #5205 Custom domain for specific pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Mar 6, 2024
1 parent a0581be commit 16d032c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion e107_handlers/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function run()
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;
}
Expand All @@ -141,6 +141,10 @@ public function run()
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']))
{
Expand Down

0 comments on commit 16d032c

Please sign in to comment.