帝国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("selecttagid,pathfrom{$dbtbpre}enewstagswheretagname='$t[$i]'limit1");
$tag.="<aclass='blue'href='/tag/$tid[path].html'target='_blank'>".$t[$i]."</a>";
}
}
echo$tag;
?>

httpd.conf伪静态规矩

RegistrationName=LongshuiChen
RegistrationCode=7Z3NU-7MAP5-JZDPH-PR9GK
[ISAPI_Rewrite]
CacheClockRate3600
RepeatLimit32

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=LongshuiChen
RegistrationCode=7Z3NU-7MAP5-JZDPH-PR9GK
[ISAPI_Rewrite]
CacheClockRate3600
RepeatLimit32

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]


声明:有的资源均来自网络转载,版权归原作者所有,如有侵犯到您的权益 请联系邮箱:123456@qq.com 我们将配合处理!

原文地址:帝国tags伪静态教程发布于2022-06-19 07:44:09

相关推荐