PC+手机模版的代码设置179
通过上面思维导图可以大体了解PC+手机模版的代码设置的内容和目的。
本文重点介绍做SEO PC+手机模版的代码设置:
1、pc网站每个页面头部文件填写3行代码。
2、手机网站每个页面头部文件填写2行代码。
举个例子:
PC端:https://www.seowhy.com/,手机端:https://m.seowhy.com/ ,PC端和手机端是两套模板。
第一步:针对PC端需要写三行代码,写在头部文件即可
<meta name="applicable-device" content="pc">
<meta name="mobile-agent" content="format=html5;url=https://m.seowhy.com/">
<link rel="alternate" media="only screen and(max-width:640px" href="https: //m.seowhy.com/ ">
第二步:针对手机端需要写两行代码,写在头部文件即可
<meta name="applicable-device" content="mobile">
<link rel="canonical" href="https://www. seowhy.com/ ">
第三步:打开百度资源管理平台,进行适配
网址:https://ziyuan.baidu.com/mobiletools/index
将自己网站同一链接的PC端和手机端链接进行提交适配。
2022-03-01
下一篇:检查PC+手机模版优化效果
最新文章
![提升网站SEO排名的8个实用技巧[1339字]](https://cdn.shapao.cn/images/text.png)
提升网站SEO排名的8个实用技巧[1339字]
https://www.jisuseo.cn/26218.html
![SEO排名优化技巧[1415字]](https://cdn.shapao.cn/images/text.png)
SEO排名优化技巧[1415字]
https://www.jisuseo.cn/26217.html
![SEO排名提升的有效方法[1568字]](https://cdn.shapao.cn/images/text.png)
SEO排名提升的有效方法[1568字]
https://www.jisuseo.cn/26216.html
![如何在搜索引擎中获得更好的曝光率[1837字]](https://cdn.shapao.cn/images/text.png)
如何在搜索引擎中获得更好的曝光率[1837字]
https://www.jisuseo.cn/26215.html
![SEO排名提升攻略[1464字]](https://cdn.shapao.cn/images/text.png)
SEO排名提升攻略[1464字]
https://www.jisuseo.cn/26214.html
热门文章

油管youtube视频无法打开的原因
https://www.jisuseo.cn/9544.html

微信视频号点赞会被所有朋友看到吗?(附解密微信视频号的推荐机制分享)
https://www.jisuseo.cn/5625.html

站内站的作用和使用技巧
https://www.jisuseo.cn/186.html

百度蜘蛛的鉴别方法
百度真假蜘蛛IP如何识别?判断百度蜘蛛的鉴别方法

常见元标签有哪些?
https://www.jisuseo.cn/385.html