第一步、进入系统设置,如图:

第二步、进入需要治理的频道栏目,设置如图: 

高级选项设置

第三步:iis 上绑定二级域名指向文件夹,主域名下的文件夹做301或者302转向

 

第四步:文章内容中的图片修改路径:

include/arc.archives.class.php

找到240行

     //设置全局环境变量

            $this->Fields['typename'] = $this->TypeLink->TypeInfos['typename'];

            @SetSysEnv($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_frame.php?id={dede:field.id/}"

 width="100%" height="360px" scrolling="auto" frameborder="0"></iframe>

默认的 有些问题 需要自己调试 

 

第六步:栏目模板下级栏目路径设置,百度,例如

需要修改

 

在系统-》系统基本参数-》添加新变量,百度,如图:

页面中引用:{dede:global.cfg_newshost/}/gn/

360好搜