织梦把普通地图改为xml
来源:互联网 发布:网络教育选什么专业 编辑:程序博客网 时间:2024/06/05 07:27
一.织梦DEDECMS sitemap.html位置的更改
sitemap.html默认的位置时在data文件夹下面的,但是一般我们为了优化,会放在根目录,如何放在根目录呢?
首先找到------dede------makehtml_map.php
这样就OK了
2、织梦如何生成sitemap.xml
1).复制一下代码,并保存,例如gsitemap.htm等
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
<url>
<loc>{dede:global.cfg_basehost/}</loc>
<lastmod>{dede:arclist row=1 titlelen=24 orderby=pubdate}
[field:pubdate function=strftime('%Y-%m-%d',@me)/]
{/dede:arclist}</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
</url>
{dede:channel row='1000' type='top'}
<url>
<loc>[field:typelink /]</loc>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
{/dede:channel}
{dede:arclist row=2000 orderby=pubdate}
<url>
<loc>[field:arcurl/]</loc>
<lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
{/dede:arclist}
</urlset>
2)、上传到/wwwroot/templets/plus
3)、
4)、
5)、
6)、
7)、
如需转载,请注明来源:【魅网工作室】
(责任编辑:魅网工作室)
sitemap.html默认的位置时在data文件夹下面的,但是一般我们为了优化,会放在根目录,如何放在根目录呢?
首先找到------dede------makehtml_map.php
这样就OK了
2、织梦如何生成sitemap.xml
1).复制一下代码,并保存,例如gsitemap.htm等
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
<url>
<loc>{dede:global.cfg_basehost/}</loc>
<lastmod>{dede:arclist row=1 titlelen=24 orderby=pubdate}
[field:pubdate function=strftime('%Y-%m-%d',@me)/]
{/dede:arclist}</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
</url>
{dede:channel row='1000' type='top'}
<url>
<loc>[field:typelink /]</loc>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
{/dede:channel}
{dede:arclist row=2000 orderby=pubdate}
<url>
<loc>[field:arcurl/]</loc>
<lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
{/dede:arclist}
</urlset>
2)、上传到/wwwroot/templets/plus
3)、
4)、
5)、
6)、
7)、
如需转载,请注明来源:【魅网工作室】
(责任编辑:魅网工作室)
0 0
- 织梦把普通地图改为xml
- 把普通表改为Partition表
- 把FL2440 的调试串口改为普通串口的方法
- 把FL2440 的调试串口改为普通串口的方法
- wince 6.0 如何把调试串口改为普通串口
- linux2.6.32.2内核把mini2440的UART2改为普通的串口驱动
- linux2.6.32.2内核把mini2440的UART2改为普通的串口驱动
- 把织梦DedeCms的搜索框,改为整合各大搜索引擎的多功能搜索框!
- 将普通表改为分区表
- dede 梦织生成xml 网站地图
- 如何把HTML改为XHTML
- 如何把HTML改为XHTML
- 把非分区表改为分区表
- 把语言环境变量改为英文
- 把语言环境变量改为英文
- 把关闭窗口改为最小化
- linux debug串口改为普通串口
- oracle将普通表改为分区表
- 生成jni头文件的一种方法
- x86体系下Linux中的任务切换与TSS
- EFI、UEFI、MBR、GPT的区别
- sphinx搭建亿级搜索
- 项目经验分享--今天数据库的一张表挂了is marked as crashed and last (automatic?) repair failed
- 织梦把普通地图改为xml
- Mybatis association
- Windows平台下GCC编程之输出1000年(包括1000年)到1999年之间的所有闰年,要求每三个一行,分行输出
- Oracle 列转行
- 轻松搞定面试中的二叉树题目
- 转载:那些著名或者非著名的面试题(上)
- Artisan框架使用帮助
- Android读取相册时报错:Attempted to access a cursor after it has been closed.
- cocos2d-x自制工具07:打印cocos2d-x的节点树