帝国tags伪静态教程

发布时间:2021-08-15作者:帝国建站网

帝国tags伪静态链接修改代码

最后伪静态链接为:/tag/xxx.html

<?
$a=$navinfor[infotags];
$str=str_replace(',', ',', $a);
$tag='';
$t= explode(",", $str);
for($i=0;$i<count($t);$i++)
{ 
 if($t[$i])
 {
$tid=$empire->fetch1("select tagid,path from {$dbtbpre}enewstags where tagname='$t[$i]' limit 1");
 $tag.="<a class='blue' href='/tag/$tid[path].html' target='_blank'>".$t[$i]."</a>";
}
}
echo $tag;
?>

httpd.conf伪静态规则

RegistrationName=Longshui Chen
RegistrationCode=7Z3NU-7MAP5-JZDPH-PR9GK
[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32

RewriteRule ^(.*)/tag/(.+)_([0-9]+).html$ $1/e/tags/?path=$2&tempid=11&page=$3 [I]
RewriteRule ^(.*)/tag/(.+).html$ $1/e/tags/?path=$2&tempid=11 [I]

httpd.conf伪静态规则

RegistrationName=Longshui Chen
RegistrationCode=7Z3NU-7MAP5-JZDPH-PR9GK
[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32

RewriteRule ^(.*)/tag/(.+)_([0-9]+).html$ $1/e/tags/?path=$2&tempid=11&page=$3 [I]
RewriteRule ^(.*)/tag/(.+).html$ $1/e/tags/?path=$2&tempid=11 [I]


上一篇:帝国CMS7.5版升级支持自定义后台登录文件

下一篇:帝国cms灵动标签调用上一章和下一章文章名称