From 4f6e8b06b8b39744ea8cdce1280e223927165b8d Mon Sep 17 00:00:00 2001 From: conory Date: Sat, 26 Mar 2016 23:37:20 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9D=B4=ED=8A=B8=20=EC=8B=9C?= =?UTF-8?q?=EC=9E=91=20=EB=AA=A8=EB=93=88=EC=97=90=20mid=20=EB=B6=99?= =?UTF-8?q?=EC=9D=B4=EA=B3=A0=20=EC=A0=91=EA=B7=BC=ED=95=A0=20=EA=B2=BD?= =?UTF-8?q?=EC=9A=B0=20=EB=94=94=EB=A0=89=EC=85=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classes/module/ModuleHandler.class.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/classes/module/ModuleHandler.class.php b/classes/module/ModuleHandler.class.php index e2a6511a0..c433ccbf3 100644 --- a/classes/module/ModuleHandler.class.php +++ b/classes/module/ModuleHandler.class.php @@ -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) {