浏览 3642 次 / [ 天下网闻 ] 手机站排名:百度新算法时代---移动搜索页面优化策略
  • 发布时间 2012-06-09 02:43
  • 百度从上个月开始掉正了移动搜索排序算法,这使得拥有手机站的站点排名上升,鼓励网站运营者与站长进行手机页的优化。并开放了移动建站频道,在上一篇文章中卢松松介绍了如何使用百度移动开放平台,而这次主要从网页代码优化方面对移动搜索优化进行说明。

    如果你还没有手机站,可以使用百度移动开放平台用二级域名CNAME解析到yizhan.baidu.com。如果是自有wap平台也可以使用该协议。

    通常情况下,CNAME到百度后就能自动实现手机版,当如果想要更精准的突出内容(注:任何网站都可使用),比如不想显示的内容,要突出的内容。则需要详细了解《页面优化协议2.0》。

    第一步:在(Head)间放入<!--baidu-tc/2.0 page-->

    百度移动搜素页面优化策略-卢松松博客

    一般在WAP站的<head></head>内部,放入<!--baidu-tc/2.0 page-->即可收录。

    如果是CNAME的域名,可以不放一样有显示效果,但在手机上的显示效果就差了点。

    如果你想有更高级的自定义,可以按照天极网的写法,例如:

    http://lusongsong.com/themes/LuSongSong/style/images/quote-bg.png); background-attachment: initial; background-origin: initial; background-clip: initial; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 25px; text-align: justify; background-position: 10px 10px; background-repeat: no-repeat no-repeat; ">

    <!-- baidu-tc/2.0 page:{"title":"天极网首页","page_topic":"NEWS","page_type":"HOMEPAGE","default_action":"DELETE"}-->

    这段代码是意思是告诉百度,标题用“天极网首页”我这是个新闻站,网页内容较复杂,结构不固定,如果没有标记的区域可以直接删除。

    如果你看明白这个,那么用更多自定义代码就方便了许多,页面标记采用JSON格式定义页面转码参数,JSON数据结构中,各个参数之间用“,”分割。属性值支持如下:

    百度移动搜素页面优化策略-卢松松博客

    这就是实例标题部分,也可以不写,我博客就没有写。

    第二部分则是page_type可选字段,表示网页的频道类型:

    百度移动搜素页面优化策略-卢松松博客

    刚才天极网用的是NEWS,博客可使用BLOG,其他站点以此推类。

    第三部分是可选字段,表示网页结构类型:

    百度移动搜素页面优化策略-卢松松博客

    一般首页都选择HOMEPAGE。

    第四部分比较重要,default_action取值如下:

    百度移动搜素页面优化策略-卢松松博客

    熟悉以上代码后就能准确的指导手机版网站的用途了。

    第二步:在源PC网页主题(Body)插入百度标注定义展现效果

    这部分内容比较简单,在使用上协议后,使用如下代码即可告知那些网页可以在手机上显示、那些要折叠、那些要删除。

    百度移动搜素页面优化策略-卢松松博客

    需要显示的区域用此代码:

    http://lusongsong.com/themes/LuSongSong/style/images/quote-bg.png); background-attachment: initial; background-origin: initial; background-clip: initial; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; text-align: justify; background-position: 10px 10px; background-repeat: no-repeat no-repeat; ">

     <!-- baidu_tc block_begin: {"action": "SHOW"} -->

    代码区域……

    <!-- baidu_tc end -->

    需要折叠的区域用此代码:

    http://lusongsong.com/themes/LuSongSong/style/images/quote-bg.png); background-attachment: initial; background-origin: initial; background-clip: initial; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; text-align: justify; background-position: 10px 10px; background-repeat: no-repeat no-repeat; ">

    <!-- baidu_tc block_begin: {"action": "FOLD"} -->

    代码区域……

    <!-- baidu_tc end -->

    需要删除的区域用此代码:

    http://lusongsong.com/themes/LuSongSong/style/images/quote-bg.png); background-attachment: initial; background-origin: initial; background-clip: initial; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; text-align: justify; background-position: 10px 10px; background-repeat: no-repeat no-repeat; ">

    <!-- baidu_tc block_begin: {"action": "DELETE"} -->

    代码区域……

    <!-- baidu_tc end -->

    一般来说,百度移动搜索的内容都能还原整个网站原貌,但在手机上一定有多余的内容可以不予显示,这时候用到DELETE代码就尤为重要。

    写在最后:

    以上内容均参考自《页面优化协议2.0》,更多高级设置请参考此文档,我已经博客上使用了此协议,遗憾的是由于是CNMAE的站,导致移动站自由度不高、第三方工具无法统计数据,不过对收录、流量来说还是有一定保证。


    本文选自:http://lusongsong.com/reed/484.html,谢谢!

    qhhln 7-27-2012 09:54
    不错的贴,太喜欢了,大家都顶啊












    优购网-淘宝网-优购返利网-淘宝返现网-淘宝购物导航-现在注册即送2元ugoabc.com-网上购物真可以返利-hongyunlvbu.cn.alibaba.com