我建立一個滑動的單頁網站結構如下:單頁網站+ AJAX + History.js + Googlebot的
<div id="wrapper">
<div id="ajax_content">
// AJAX action fires on document ready (jquery) and loads ALL pages in here
// then I slide to the correct page-panel found via URL
</div>
<noscript>
// Normal rendering of the SINGLE page that was requested by the url
</noscript>
</div>
我使用History.js,所以我沒有hashbanged網址。到這幾個頁面的所有(菜單)鏈接只是正常的鏈接,data-page
屬性是JS的return false
。
我想谷歌索引所有頁面分開。
我面臨的問題是,我發現有關ajaxed網站的所有文檔都聲明谷歌需要hashbangs。 因此,如果我的href
標籤中只有普通網址,Google不會執行任何ajax操作,對吧?
其他問題:Google會讀取<noscript>
標籤。但是,由於無稿的內容與向用戶顯示的內容不同,谷歌會將此方法視爲隱藏?
谷歌指出:
確保您提供兩種元素相同的內容(例如,提供在JavaScript相同的文字作爲指令碼的標籤)。在備用元素中包含大不相同的內容可能會導致Google在該網站上採取行動。
您對這種方法有什麼看法?
非常感謝這個合格的答案... – xsonic 2012-07-08 08:32:56