DEDE生成Google Sitemap的方法

Google Sitemap 方法:
1.在模版目录新建一个index.xml文件,内容如下:

 

 

CODE:

<?xml version=”1.0″ encoding=”UTF-8″?>
<urlset xmlns=”http://www.google.com/schemas/sitemap/0.84″>
<url>
<loc>http://www.javaems.com</loc>
</url>
{dede:arclist row=”9999″ col=1 titlelen=”200″ orderby=”pubdate”}
<url>
<loc>http://www.javaems.com[field:arcurl /]</loc>
</url>{/dede:arclist}
</urlset>
//请将其中网址改成您自己的. Row后面的数字请根据您自己的内容来定.例如您有1W文章可以写10000或者更大数字.

2.在后台点更新首页.模版选index.xml.
生成位置写站点根目录名称随便.如(sitemap.xml)
然后点生成就可以了.

3.然后就去Google添加吧.
网址是:http://www.google.com/sitemaps/

This entry was posted in 生活. Bookmark the permalink.

发表评论

您的电子邮箱不会被公开。 标记为 * 的区域必须填写

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>