4 人参与回答
每个系统都不一样。织梦本身就带Sitemap功能。
帝国自定义页面放入下边代码就行
<?='<?xml version="1点0" encoding="UTF-8"?>'?>
<urlset xmlns="http://www点点Sitemaps点org/schemas/sitemap/0点9">
<url>
<loc>[!--news点url--]</loc>
<priority>1</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>
<priority>0点9</priority>
</url>
[/e:loop]
[e:loop={"select * from [!db点pre!]eCMS_news order by id desc",0,24,0}]
<url>
<loc><?=$bqsr[titleurl]?></loc>
<lastmod><?=format_datetime($bqr[newstime],'Y-m-d')?></lastmod>
<priority>0点8</priority>
</url>
[/e:loop]
</urlset>
其他系统大同小异