帝国tags伪静态教程
2019-03-11 站长 站长日志
帝国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]
下一篇:PHP判断帝国cms字段加样式