mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
사이트 시작 모듈에 mid 붙이고 접근할 경우 디렉션
This commit is contained in:
parent
d328efcbc0
commit
4f6e8b06b8
1 changed files with 9 additions and 1 deletions
|
|
@ -257,6 +257,14 @@ class ModuleHandler extends Handler
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// redirect, if site start module
|
||||||
|
if(isset($_GET['mid']) && $_GET['mid'] === $site_module_info->mid && !$this->act && !$this->module && !$this->document_srl)
|
||||||
|
{
|
||||||
|
Context::setCacheControl(0);
|
||||||
|
header('location: ' . getNotEncodedSiteUrl($site_module_info->domain), true, 301);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// If module info was set, retrieve variables from the module information
|
// If module info was set, retrieve variables from the module information
|
||||||
if($module_info)
|
if($module_info)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue