国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > CMS > 帝國Empire > 正文

帝國cms網(wǎng)站地圖sitemap.xml的制作方法

2024-08-28 12:23:04
字體:
供稿:網(wǎng)友

站長們應(yīng)該都知道網(wǎng)站地圖對于一個站點的重要性,網(wǎng)站設(shè)置百度sitemap.xml,能夠幫助我們網(wǎng)站收錄,讓搜索引擎更加的了解你的網(wǎng)站(同時要注意對文件里權(quán)重的設(shè)置),下面就講下在帝國cms里面怎么設(shè)置網(wǎng)站地圖sitemap.xml。

首頁打開帝國后臺,欄目—自定義頁面-增加自定義頁面

選擇:直接頁面式 設(shè)置頁面名稱為sitemap.xml ,修改文件名為:../../sitemap.xml (根目錄) 頁面內(nèi)容填寫下面代碼:

<?='<?xml version="1.0" encoding="UTF-8"?>'?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>[!--news.url--]</loc><lastmod> <?php echo date("Y-m-d"); ?></lastmod><changefreq>daily</changefreq><priority>1.000</priority></url>[e:loop={"select * from [!db.pre!]enewsclass order by myorder",0,24,0}]<?if($bqr['classurl']==''){$sccurl=$public_r['newsurl'].$bqr['classpath']."/";}else{$sccurl=$bqr['classurl']."/";}?><url><loc><?=$sccurl?></loc><changefreq>daily</changefreq><priority>0.8000</priority></url>[/e:loop][e:loop={"select * from [!db.pre!]enewszt order by ztid",0,24,0}]<?if($bqr['zturl']==''){$sccurl=$public_r['newsurl'].$bqr['ztpath']."/";}else{$sccurl=$bqr['zturl']."/";}?><url><loc><?=$sccurl?></loc><lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod><changefreq>monthly</changefreq><priority>0.6000</priority></url>[/e:loop][e:loop={"select * from [!db.pre!]ecms_news order by newstime desc",0,24,0}]<url><loc><?=$bqsr[titleurl]?></loc><lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod><changefreq>monthly</changefreq><priority>0.5000</priority></url>[/e:loop]</urlset>

設(shè)置好后保存:刷新自定義頁面

好了,帝國cms仿站之網(wǎng)站地圖制作完成。

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 平顺县| 德庆县| 祥云县| 施秉县| 邹平县| 鸡东县| 梁山县| 谷城县| 革吉县| 楚雄市| 永顺县| 韶山市| 辉县市| 祁门县| 曲周县| 兴义市| 铜陵市| 紫云| 信阳市| 伊金霍洛旗| 九江县| 阿拉尔市| 五华县| 陕西省| 红桥区| 翼城县| 宁德市| 贵阳市| 隆林| 和林格尔县| 宜阳县| 淅川县| 东辽县| 磐安县| 萍乡市| 江城| 泰和县| 壤塘县| 普陀区| 贵州省| 斗六市|