mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Implement redirect to default domain if unregistered domain is requested
This commit is contained in:
parent
79f29b3372
commit
2e3e969767
3 changed files with 28 additions and 1 deletions
|
|
@ -273,7 +273,7 @@ class Context
|
|||
}
|
||||
|
||||
// Redirect to SSL if the current domain always uses SSL.
|
||||
if ($site_module_info->security === 'always' && !RX_SSL && PHP_SAPI !== 'cli')
|
||||
if ($site_module_info->security === 'always' && !RX_SSL && PHP_SAPI !== 'cli' && !$site_module_info->is_default_replaced)
|
||||
{
|
||||
$ssl_url = self::getDefaultUrl($site_module_info) . RX_REQUEST_URL;
|
||||
self::setCacheControl(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue