Google 定义的 sitemap格式如下:
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/09/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://www.zhouhaihe.com/</loc> <lastmod>2007-11-15</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> </urlset> 就是说参照上面格式定义一个.xml文件即可。
loc:文件连接地址 lastmod:最后修改日期 changefreq:更新时间单位 "always"(始终), "hourly"(小时), "daily"(天), "weekly"(星期), "monthly"(月), "yearly" "never"(从不)
然后将这个sitemap.xml文件提交到GoogleSitemap,提交的时候需要在Google上创建一个帐户,同时还需要确定网站与这个帐户之间的从属关系。 |