今天有人問到了這個問題,由一葉扁舟整理了資料如下,比較實用
方法一、head的加入代碼
<code> </code><code><</code><code>head</code><code>> </code>
<code> </code><code><</code><code>meta</code> <code>http-equiv</code><code>=</code><code>"Cache-Control"</code> <code>content</code><code>=</code><code>"no-transform"</code> <code>/> </code>
<code> </code><code><</code><code>meta</code> <code>http-equiv</code><code>=</code><code>"Cache-Control"</code> <code>content</code><code>=</code><code>"no-siteapp"</code> <code>/> </code>
<code> </code><code></</code><code>head</code><code>></code>
這樣就禁止了大部分搜尋引擎對網站的轉碼
方法二、指定通路頁面 handheld協定
頁面通過<link>标簽顯式指定WAP網頁,聲明格式如下:<link rel=”alternate” type=”application/vnd.wap.xhtml+xml” media=”handheld” href=”target”/>如第三方站點不希望頁面被轉碼,可添加此協定,告知我們原網頁對應有一個WAP版頁面,當使用者進入第三方網站時,先進入中間提示頁,讓使用者自主選擇跳轉至原網頁或第三方網站自有的wap頁面。
<a href="http://www.8090td.com/archives/1085.html" target="_blank"></a>
本文轉自 yeybz 51CTO部落格,原文連結:http://blog.51cto.com/hmlwl/1590861