现在不少站长都关心搜索引擎的收录问题,但织梦DedeCms自带的网站地图给Google提交时通不过的。通过这个方法可以制作一个生成在根目录的sitemap.xml地图,可以提交给Google网站管理员工具。 首先要先建立一个网站地图模板,将下面的代码复制到记事本。
<?xml version=“1.0” encoding=“UTF-8”?>
<urlset xmlns=”http://www.google.com/schemas/sitemap/0.84″>
<url>
<loc>http://127.0.0.1/</loc>
<lastmod>{dede:arclist row=1 titlelen=24 orderby=pubdate}
[field:pubdate function=strftime(’%Y-%m-%d’,@me)/]
{/dede:arclist}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
{dede:channel row=’23’ type=’top’}
<url>
<loc>http://127.0.0.1[field:typelink /]</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
{/dede:channel}
{dede:arclist row=2000 orderby=pubdate}
<url>
<loc>http://127.0.0.1[field:arcurl/]</loc>
<lastmod>[field:pubdate function=strftime(’%Y-%m-%d’,@me)/]</lastmod>
<changefreq>monthly</changefreq>
</url>
{/dede:arclist}
</urlset>
<urlset xmlns=”http://www.google.com/schemas/sitemap/0.84″>
<url>
<loc>http://127.0.0.1/</loc>
<lastmod>{dede:arclist row=1 titlelen=24 orderby=pubdate}
[field:pubdate function=strftime(’%Y-%m-%d’,@me)/]
{/dede:arclist}</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
{dede:channel row=’23’ type=’top’}
<url>
<loc>http://127.0.0.1[field:typelink /]</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
{/dede:channel}
{dede:arclist row=2000 orderby=pubdate}
<url>
<loc>http://127.0.0.1[field:arcurl/]</loc>
<lastmod>[field:pubdate function=strftime(’%Y-%m-%d’,@me)/]</lastmod>
<changefreq>monthly</changefreq>
</url>
{/dede:arclist}
</urlset>
本文转载自:http://www.dedeadmin.com/?p=973
正缺这个呢,在织梦论坛看了,要5贡献值呢。没办法,百度知道的太多了。
评论前必须登录!
注册