织梦如何制作sitemap.xml
来源:互联网 发布:阿里云 搭建集群 编辑:程序博客网 时间:2024/04/27 07:32
我们很多做优化的朋友都知道,每个网站都要有站点地图,以供搜索引擎抓取收录。
织梦建站中,也有个生成地图的站点地图,可是效果远远不好,那怎么制作站点地图sitemap.xml呢
织梦站点地图sitemap.xml和sitemap.htm如何制作以及如何放到根目录呢!可看文章:http://www.cqmeiwang.com/fzjc/zmfz/110.html
1、新建一个htm文件,把一下代码复制,并保存,例如sitemap.htm等都可以;然后放到自己网站的templets下面,位置可以选;
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
<url>
<loc>http://www.cqbishou.com/</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://www.cqbishou.com[field:typelink /]</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
{/dede:channel}
{dede:arclist row="2000" orderby="pubdate"}
<url>
<loc>http://www.cqbishou.com[field:arcurl/]</loc>
<lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod>
<changefreq>monthly</changefreq>
</url>
{/dede:arclist}
{dede:arclist row="2000" orderby="pubdate" typeid="8"}
<url>
<loc>http://www.cqbishou.com[field:arcurl/]</loc>
<lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod>
<changefreq>monthly</changefreq>
</url>
{/dede:arclist}
</urlset>
2、然后点击生成,生成首页,我们在首页模板那选择自己上传的sitemap.htm文件,首页位置就写../sitemap.xml,,这样我们在更新时,sitemap.xml文件就在根目录了!
3、最后,sitemap.xml文件生成在根目录后,不要忘记返回,也就是说把首页模板和位置重新选回我们网站的首页,这样是为了以防我们首页打不开;
如需转载,请注明来源【魅网工作室】
织梦建站中,也有个生成地图的站点地图,可是效果远远不好,那怎么制作站点地图sitemap.xml呢
织梦站点地图sitemap.xml和sitemap.htm如何制作以及如何放到根目录呢!可看文章:http://www.cqmeiwang.com/fzjc/zmfz/110.html
1、新建一个htm文件,把一下代码复制,并保存,例如sitemap.htm等都可以;然后放到自己网站的templets下面,位置可以选;
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
<url>
<loc>http://www.cqbishou.com/</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://www.cqbishou.com[field:typelink /]</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
{/dede:channel}
{dede:arclist row="2000" orderby="pubdate"}
<url>
<loc>http://www.cqbishou.com[field:arcurl/]</loc>
<lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod>
<changefreq>monthly</changefreq>
</url>
{/dede:arclist}
{dede:arclist row="2000" orderby="pubdate" typeid="8"}
<url>
<loc>http://www.cqbishou.com[field:arcurl/]</loc>
<lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod>
<changefreq>monthly</changefreq>
</url>
{/dede:arclist}
</urlset>
2、然后点击生成,生成首页,我们在首页模板那选择自己上传的sitemap.htm文件,首页位置就写../sitemap.xml,,这样我们在更新时,sitemap.xml文件就在根目录了!
3、最后,sitemap.xml文件生成在根目录后,不要忘记返回,也就是说把首页模板和位置重新选回我们网站的首页,这样是为了以防我们首页打不开;
如需转载,请注明来源【魅网工作室】
0 0
- 织梦如何制作sitemap.xml
- 如何制作网站地图(sitemap.html和sitemap.xml)?
- 利用织梦dedecms单页功能制作Sitemap.xml地图
- SEO必修课之:Sitemap语法指南,如何使用sitemap.xml
- 织梦教程:定时生成站点地图sitemap.xml
- sitemap.xml
- google sitemap 制作工具
- Sitemap制作攻略&Sitemap生成器的评测
- 织梦教程:定时生成站点地图sitemap.xml(转+优化)
- XML Sitemap 相关问题
- sitemap xml 协议
- XML Sitemap 相关问题
- XML Sitemap 相关问题
- sitemap.xml的写法
- 如何更改织梦(dedecms)的RSS、sitemap路径至根目录
- Google Sitemap详细制作教程
- 制作Sitemap 用于GOOGLE抓取
- 制作Sitemap 用于GOOGLE抓取
- 如何用Fiddler对Android应用进行抓包
- ACM 奇偶数分离 Java
- 幕后英雄的用武之地——浅谈Java内部类的四个应用场景
- Fragment深度使用解析
- floyd +二分答案+最大流 poj2112
- 织梦如何制作sitemap.xml
- 华为研发实习生(一面)
- JavaWeb编码之get方式中文乱码问题
- 树莓派+python 远程点亮LED灯
- 拒绝广告套路,音频营销这三招“玩的就是个性”
- java代码实现图片压缩
- AML_看门狗驱动分析
- [记录]MyBatis库更新
- 一致性哈希