mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
#18614483 도메인 별로 중복되는 글이 수집되는 일이 생겨나지 않게 수정.
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7153 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e00ab11d62
commit
a29c4bdde7
1 changed files with 5 additions and 3 deletions
|
|
@ -108,7 +108,8 @@
|
|||
// redirect, if module_site_srl and site_srl are different
|
||||
if(!$this->module && !$module_info && $site_module_info->site_srl == 0 && $site_module_info->module_site_srl > 0) {
|
||||
$site_info = $oModuleModel->getSiteInfo($site_module_info->module_site_srl);
|
||||
header("location:".getNotEncodedSiteUrl($site_info->domain,'mid',$site_module_info->mid));
|
||||
header("HTTP/1.1 301 Moved Permanently");
|
||||
header("Location:".getNotEncodedSiteUrl($site_info->domain,'mid',$site_module_info->mid));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -118,7 +119,7 @@
|
|||
if(!$module_info && !$this->module && $site_module_info->module_site_srl) $module_info = $site_module_info;
|
||||
|
||||
// redirect, if site_srl of module_info is different from one of site's module_info
|
||||
if($module_info && $module_info->site_srl != $site_module_info->site_srl && !isCrawler()) {
|
||||
if($module_info && $module_info->site_srl != $site_module_info->site_srl) {
|
||||
// If the module is of virtual site
|
||||
if($module_info->site_srl) {
|
||||
$site_info = $oModuleModel->getSiteInfo($module_info->site_srl);
|
||||
|
|
@ -129,7 +130,8 @@
|
|||
if(!$db_info->default_url) return Context::getLang('msg_default_url_is_not_defined');
|
||||
else $redirect_url = getNotEncodedSiteUrl($db_info->default_url, 'mid',Context::get('mid'),'document_srl',Context::get('document_srl'),'module_srl',Context::get('module_srl'),'entry',Context::get('entry'));
|
||||
}
|
||||
header("location:".$redirect_url);
|
||||
header("HTTP/1.1 301 Moved Permanently");
|
||||
header("Location:".$redirect_url);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue