帝国tags伪静态链接修改代码
最后伪静态链接为:/tag/xxx.html
123456789101112131415 | <? $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='https://www.11px.cn/tag/$tid[path].html' target='_blank'>" . $t [ $i ]. "</a>" ; } } echo $tag ; ?> |
httpd.conf伪静态规则
12345678 | 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伪静态规则
12345678 | 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] |
标签 tags教程伪静态批量加好友