Google發現URL里有#!符號,例如example.com/#!/detail/1,于是Google開始抓取example.com/單網頁生成工具?_escaped_fragment_=/detail/1;
_escaped_fragment_這個參數是Google指定的命名,如果開發者希望把網站內容提交給Google,就必須通過這個參數生成靜態頁面。
seo單頁面生成軟件根據上面的demo,我簡單示例一下Google要抓取的頁面的樣子:
http://119.28.4.22/?escapedfragment_=/detail/1
如此以來,就需要Server通過生成靜態的內容以便Google抓取。
seo單頁面生成軟件 以下將簡單介紹,單頁架構,爬蟲訪問根目錄時如果配置Server端的路由。
判斷爬蟲
當Google訪問119.28.4.22/#!/detail/1 時,會自動轉化成http://119.28.4.22/?_escaped_fragment_=/detail/1,以Nginx為例:
1
2
3
if ($args ~ _escaped_fragment_) {
rewrite ^ /api;
}
/api為后臺服務的接口seo單頁面生成軟件 ,已nodejs為例,代理設置如下:
}
如果您覺得 網站提交sitemap給Google 這篇文章對您有用,請分享給您的好友,謝謝
文章地址:http://www.brucezhang.com/article/seo/wztjsitemapgGoogle.html
文章地址:http://www.brucezhang.com/article/seo/wztjsitemapgGoogle.html