您现在的位置是:首页 > 教程 > 帝国CMS教程帝国CMS教程
帝国tags伪静态步骤教程
冰萍2023-05-18 22:34:23帝国CMS教程已有人查阅
导读帝国tags伪静态链接修改代码,最后伪静态链接为:/tag/xxx.html,httpd.conf伪静态规则
帝国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字段加样式
相关文章
随机图文
-
帝国CMS下载页面两种模板样式推荐后续更新
帝国默认的最终下载页面确实有点难看了!所以小编抽空弄了两个模板,都支持自定义“网盘字段” 如果你有的话就可以显示出来了 -
帝国CMS多图上传插件怎么去掉图片链接
打开eadminecmseditortranmoretemplateEditorMorepicTemp.txt这个文件! -
帝国CMS怎么设置推广赠送点数
链接地址为:http://网站地址/e/tool/gfen?id=会员帐号ID或http://网站地址/e/tool/gfen?n=会员用户名 -
帝国CMS灵动标签循环子栏目数据同时调用点击排行及最新信息方法
帝国CMS灵动标签循环子栏目数据,同时调用点击排行及最新信息,当然也可以是其它两种信息调用,如下图为例:
留言与评论 (共有 条评论) |