帝国tags伪静态教程

作者头像
6G站长网 本文作者

2026-4-23 阅读 18 约 3分钟读完

评论0

还在找帝国tags伪静态教程的靠谱教程?6G 站长网今天整理了帝国tags伪静态教程从入门到精通的完整指南,解决大家在学习帝国tags伪静态教程时 “步骤看不懂、操作易出错、效果不理想” 的核心问题,手把手教你做好帝国tags伪静态教程,新手也能一次学会。

帝国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]


上一篇 帝国CMS二次开发tags增加封面图片 下一篇 PHP判断帝国cms字段加样式
评论
评论已关闭