這兩天注意到搜尋引擎的巡訪成果沒有想像中的那麼有效率,20日凌晨張貼完畢的文章到現在(二十三號下午)還不能用Google抓到 =3=
這時候就要用這個道具啦(手伸進四次元口袋):
っグーグルサイトマップ~
簡單的說明一下使用方法:
就這麼簡單~
而這個簡單小道具的功用呢~它可以告訴Google:
<loc>網址</loc>(必要)<priority>數值</priority>(選用)範圍從1.0~0.1<lastmod>時間</lastmod> (選用)格式:年-月-日T時:分:秒+時區識別 ,也可以只給年-月-日<changefreq>更新頻率</changefreq>(選用)可用的值有 always、hourly、daily、weekly、monthly、yearly、never基本上只要一直保持此檔案與網頁之間的對照沒有錯誤,Google就可以很準確的知道網站中有多少頁面是要拖出去給人看的。
不過依然不保證巡迴的頻率就是了 orz
下面是給MovableType使用的Sitemap模板,
放在引索模板那一區,記得要點自動重建才會同步。
接抓回去-貼上儲存就可以用了,
建議依照個人各站的需求, 動手修改修改再用應該會有更好的效果:)
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
<url>
<loc><$MTBlogURL$></loc>
<lastmod><MTEntries lastn="1"><$MTEntryModifiedDate format="%Y-%m-%d"$></MTEntries></lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<MTEntries lastn="49900">
<url>
<loc><$MTEntryLink encode_xml="1"$></loc>
<lastmod><MTEntryIfAllowComments><MTIfNonEmpty tag="MTCommentDate"><$MTCommentDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$><MTElse><$MTEntryModifiedDate format="%Y-%m-%d"$></MTElse></MTIfNonEmpty><MTElse><$MTEntryModifiedDate format="%Y-%m-%d"$></MTElse></MTEntryIfAllowComments></lastmod>
<changefreq>weekly</changefreq>
</url>
</MTEntries>
</urlset>
參考連結: