网站首页 SEO算法 正文
很多人用www.xxx.com的域名作为pc的站点,用m.xxx.com的域名作为移动端站点,那么怎么设置seo标签的写法呢,本文介绍一下
首先在电脑端应该设置 以下三个标签(这是首页)
<meta http-equiv="mobile-agent" content="format=html5; url=http://m.bxxx.com" />
<meta http-equiv="mobile-agent" content="format=xhtml; url=http://m.xxx.com" />
<link rel="alternate" media="only screen and (max-width: 640px)" href="http://m.xxx" />
<link rel="canonical" href="http://www.xxx.cn/"/>栏目页面标签
<meta http-equiv="mobile-agent" content="format=html5; url=http://m.xxx.com/zixun/" />
<meta http-equiv="mobile-agent" content="format=xhtml; url=http://m.xxx.com/zixun/" />
<link rel="alternate" media="only screen and (max-width: 640px)" href="http://m.xxx.com/zixun/" />
<link rel="canonical" href="http://www.xxx.cn/zixun/"/>移动端只需要设置 canonical标签
<link rel="canonical" href="http://m.lingshanbaota.cn/"/>
<link rel="canonical" href="http://m.lingshanbaota.cn/bc/"/>你 发表评论:
欢迎- 2023-02-27百度小程序怎么用 标签显示前端样式
- 2022-12-07帝国cms如何在首页和列表页分别调用文章栏目名称
- 2022-12-01帝国cms如何清理全部tag标签
- 2022-11-29如何重新安装zblog,在已有数据库的情况下
- 2022-11-24python,py采集过程中谷歌内核版本需要更新怎么操作
- 2022-07-14css如何设置首航缩进两字符
- 2022-07-06帝国cms如何登陆后台地址,如何让id从1开始
- 2022-03-31如何用php随机生成一个数字
- 搜索
- 文章归档
本文暂时没有评论,来添加一个吧(●'◡'●)