惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
G
Google Developers Blog
Spread Privacy
Spread Privacy
I
InfoQ
V
V2EX
S
Schneier on Security
小众软件
小众软件
C
CERT Recently Published Vulnerability Notes
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Attack and Defense Labs
Attack and Defense Labs
云风的 BLOG
云风的 BLOG
The Hacker News
The Hacker News
S
SegmentFault 最新的问题
C
Cybersecurity and Infrastructure Security Agency CISA
NISL@THU
NISL@THU
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
Latest news
Latest news
S
Secure Thoughts
Project Zero
Project Zero
MongoDB | Blog
MongoDB | Blog
I
Intezer
Security Latest
Security Latest
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
N
Netflix TechBlog - Medium
V2EX - 技术
V2EX - 技术
量子位
T
Threatpost
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
T
Tor Project blog
A
Arctic Wolf
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
博客园 - Franky
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
L
LINUX DO - 热门话题

博客园 - chinaifne

微软Windows10LTSC2019官方三月更新版镜像 dedecms 5.7sp2 20170405运行PHP7.1的大坑(dedecms PHP7.1) JS前端开发判断是否是手机端并跳转操作(小结) 织梦后台进去后其他菜单点了后没有反应怎么办? 织梦dedecms安全设置详情 百度地图api 标注的图标不显示问题 时时获得高德地图坐标 http://lbs.amap.com/console/show/picker 去掉淘宝微淘主页 操作使用的常见的问题集合 http://bbs.ecshop.com/thread-95341-1-1.html css中font-family的中文字体 Mydomain操作说明 提高新闻采集效率:如何通过google快讯采集新闻 http://www.cnblogs.com/fengyin/archive/2011/01/18/1938628.html 前端优化 http://hi.baidu.com/suofang/home这个兄弟的博客中一些不错的前羰优化工具,今天看不完,改天接着看 iframe中子父窗口互调的js方法 Struts中出现DispatchMapping[***] does not define a handler property 的解决办法 Java中计算时间差 checkstyle配置文件说明 MyEclipse 不编译了,无论怎么更改保存, classes目录下都是空的.
织梦dedecms移动版设置二级域名的方法 织梦如何设置m.开头的域名
chinaifne · 2017-07-10 · via 博客园 - chinaifne

dedecms/' target='_blank'>织梦dedecms建站系统自从2015.06.18号升级后,系统增加了最强的手机站功能,模板与PC模板分开,标签90%类似,数据同步,很牛很强大,唯一缺点就是URL动态的,今天我们建站堂就来和大家分享下织梦默认手机站地址 /m/ 改成 M.域名。

首先你的主机需要支持绑定子目录或者是独立服务器,才可以进行绑定子域名。意思就是:如果你使用的是各服务器供应商的虚拟主机空间的话,就需要先确定你的空间或主机能不能绑定其它域名,那如果你使用的是服务器或VPS,那自己是没有问题,因为你自己有足够的权限对你的服务器进行任何设置(也就是二级域名或多域名绑定)

下面我们来具体说下操作方法:

1:主机完成绑定子域名及域名解析工作,这里就不详细介绍了。 比如西部数码主机就可以支持绑定子目录操作,如下图所示:

域名绑定

2、首先我们需要 进行织梦后台,系统--系统基本参数--添加变量(如下图所示)

3:开启--> (是/否)支持多站点,开启此项后附件、栏目连接、arclist内容启用绝对网址 实现DEDE手机站点和移动站点数据库同步的时候会出现图片调用的路径问题,现在可以轻松解决开启图片绝对地址,两个站点都可以调用。

4:手机模板修改CSS、JS等调用路径,给添加绝对地址,如下图所示。

5:PC模板修改识别代码中跳转路径。
由原来的:

1 <meta http-equiv="mobile-agent" content="format=xhtml;url={dede:global.cfg_mobileurl/}/index.php">

修改成:
 

1 <meta http-equiv="mobile-agent" content="format=xhtml;url={dede:global.cfg_wap/}/index.php">

6:找到 \include\dialog\select_images_post.php 第108行 $fileurl = $activepath.'/'.$filename; 换成: $fileurl = $cfg_cmsurl.$activepath.'/'.$filename;

7: 修改目录include下的文件extend.func.php,在最后面添加一个函数方法 function replaceurl($newurl) { $newurl=str_replace('src="/uploads/allimg/','src="http://你的域名/uploads/allimg/',$newurl); return $newurl; }

另外调用文章正文内容的标签{dede:field.body/} 需要改成: {dede:field.body function='replaceurl(@me)'/}

文章由郑州画册设计公司 https://huace.cnchuangyigu.com提供