mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
사이트 시작 모듈에 mid 붙이고 접근할 경우 디렉션
This commit is contained in:
parent
d328efcbc0
commit
4f6e8b06b8
1 changed files with 9 additions and 1 deletions
|
|
@ -256,7 +256,15 @@ class ModuleHandler extends Handler
|
|||
header("Location: $redirect_url", true, 301);
|
||||
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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue