織夢dedecms欄目綁定二級域名圖文教程,織夢文章
導讀:織夢文章織夢文章第一步、進入系統(tǒng)設置,如圖: 第二步、進入需要治理的頻道欄目,設置如圖: 高級選項設置 第三步:iis 上綁定二級域名指向文件夾,主域名下的文件夾做301或者3dede5.7模板。
第一步、進入系統(tǒng)設置,如圖:
第二步、進入需要治理的頻道欄目,設置如圖:
高級選項設置
第三步:iis 上綁定二級域名指向文件夾,主域名下的文件夾做301或者302轉向
第四步:文章內容中的圖片修改路徑:
include/arc.archives.class.php
找到240行
//設置全局環(huán)境變量
$this->Fields['typename'] = $this->TypeLink->TypeInfos['typename'];
@Se織夢模板網(wǎng)tSysEnv($this->Fields['typeid'],$this->Fields['typename'],$this->Fields['id'],$this->Fields['title'],'archives');
這個下邊添加,
$this->Fields['body'] = str_ireplace('src="/uploads/' ,'src="'.$GLOBALS['cfg_basehost'].'/uploads/',$this->Fields['body']);
第五步:設置文章評論
為了解決跨域問題是用iframe
<iframe id="frame_content" name="frame_content" src="{dede:field name='phpurl'/}/comments_dede手機模板frame.php?id={dede:field.id/}"
width="100%" height="360px" scrolling="auto" frameborder="0"></iframe>
默認的 有些問題 需要自己調試
第六步:欄目模板下級欄目路徑設置,例如http://www.5loveb.com/news/gn/
需要修改http://news.5loveb.com/gn/
在系統(tǒng)-》系統(tǒng)基本參數(shù)-》添加新變量,如圖:
頁面中引用:{dede:global.cfg_newshost/}/gn/相關dede5.7模板。
聲明: 本文由我的SEOUC技術文章主頁發(fā)布于:2023-07-22 ,文章織夢dedecms欄目綁定二級域名圖文教程,織夢文章主要講述綁定,欄目,域名網(wǎng)站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_34384.html