« 有创新就是重要的 | Main | 一个网站,一个功能 »

给 MT 加个 Sitemap 模版

Google Sitemaps 主页:http://www.google.com/webmasters/sitemaps/login
Sitemaps 简介:http://www.google.com/webmasters/sitemaps/docs/zh_CN/about.html
Sitemaps 协议:http://www.google.com/webmasters/sitemaps/docs/zh_CN/protocol.html

  Sixapart 曾将模版列为 MT 第一大特色,完成 Sitemap 这样的小事当然不费吹灰之力。

  新建一个索引(Indexes)模版,存为 sitemaps.xml,内容如下:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
<url>
<loc><$MTBlogURL encode_xml="1"$></loc>
<changefreq>hourly</changefreq>
<priority>1.0</priority>
</url>
<MTEntries lastn="49999" sort_by="modified_on" sort_order="descend">
<url>
<loc><$MTEntryLink encode_xml="1"$></loc>
<lastmod><$MTEntryModifiedDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>
</MTEntries>
</urlset>

  "Save and rebuild",到 Google 上去提交你的 sitemap url 吧。如果还要看统计信息,还需要在 sitemap.xml 的相同目录下,按 Google 给的文件名新建一个空白 html 文件,以表明你对于这个目录是有权限的。这时也不必开一个 FTP,再新建一个模版就好了,存为这个文件名,"Save and rebuild",and all done。效果见:http://www.xdanger.com/sitemap.xml

TrackBack

TrackBack URL for this entry:
https://www.xdanger.com/scripts/trackback/52

Listed below are links to weblogs that reference 给 MT 加个 Sitemap 模版:

» 给MT加个Sitemap模版 from seaspace
自己早在使用Wordpress的时候就申请了Google的Sitemaps服务,Wordpress有一个建Sitemaps的插件,所以我不用思考怎样建立Sitemaps文件。而改用MT之后我很为这个而烦恼,因为我觉得如果按照文章一篇一 [Read More]

Comments (3)

google的sitemap我建立了一个,但是发现google好象对这个sitemap并不热心,sitemap.xml倒是每天都会被GOOGLE机器人扫一次,但是它并不用里面的连接来收录,奇怪呢

还是不知道如何建这个sitemap.xml

是不是开始只是放一个空白的sitemap.xml文件在根目录下就可以了?


google sitemap.xml 用处不大,如果你网页的page rank
值比较低,即使爬了页面也不会收录的。如果本身的page rank还可以的话,sitemap能加快网页的更新频率

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on October 22, 2005 1:28 AM.

The previous post in this blog was 有创新就是重要的.

The next post in this blog is 一个网站,一个功能.

Many more can be found on the main index page or by looking through the archives.

Categories

饭否

Tags

Creative Commons License
This weblog is licensed under a Creative Commons License.