日日操夜夜添-日日操影院-日日草夜夜操-日日干干-精品一区二区三区波多野结衣-精品一区二区三区高清免费不卡

公告:魔扣目錄網(wǎng)為廣大站長提供免費(fèi)收錄網(wǎng)站服務(wù),提交前請做好本站友鏈:【 網(wǎng)站目錄:http://www.ylptlb.cn 】, 免友鏈快審服務(wù)(50元/站),

點(diǎn)擊這里在線咨詢客服
新站提交
  • 網(wǎng)站:51998
  • 待審:31
  • 小程序:12
  • 文章:1030137
  • 會員:747

帝國cms網(wǎng)站優(yōu)化值tags偽靜態(tài)的實(shí)現(xiàn)步驟如下:

 

1.修改e/class/t_functions.php中的sys_eShowTags函數(shù)

 

 

 

復(fù)制代碼代碼如下:

//顯示TAGS

function sys_eShowTags($cid,$num=0,$line=0,$order='',$isgood='',$isgoodshow='',$showjg='',$shownum=0,$cs=''){

global $empire,$dbtbpre,$public_r,$navinfor;

$str='';

if(empty($showjg))

{

$showjg='   ';

}

$ln=0;

if($cid=='selfinfo')

{

if(empty($navinfor['infotags']))

{

return '';

}

$jg='';

$r=explode(',',$navinfor['infotags']);

$count=count($r);

for($i=0;$i<$count;$i++)

{

$ln++;

$br='';

if($line)

{

if($ln%$line==0)

{

$br='

';

}

}

$str.=$jg.'<a href="'.$public_r[newsurl].'e/tags/?tagname='.urlencode($r[$i]).$cs.'" target="_blank">'.$r[$i].'</a>'.$br;

$jg=$br?'':$showjg;

}

}

else

{

$and='';

$where='';

if($cid)

{

$where=strstr($cid,',')?"cid in ($cid)":"cid='$cid'";

$and=' and ';

}

if($isgood)

{

$where.=$and.'isgood=1';

}

if($where)

{

$where=' where '.$where;

}

$order=$order?' '.$order:' tagid desc';

$limit='';

if($num)

{

$limit=' limit '.$num;

}

//推薦標(biāo)紅

$gfont1='';

$gfont2='';

if($isgoodshow)

{

if(strstr($isgoodshow,'r'))

{

$gfont1='<font color="red">';

$gfont2='</font>';

}

if(strstr($isgoodshow,'s'))

{

$gfont1=$gfont1.'<b>';

$gfont2='</b>'.$gfont2;

}

}

$jg='';

$snum='';

$sql=$empire->query("select tagid,tagname,num,isgood from {$dbtbpre}enewstags".$where." order by".$order.$limit);

while($r=$empire->fetch($sql))

{

if($shownum)

{

$snum='('.$r[num].')';

}

$font1='';

$font2='';

if($isgoodshow&&$r[isgood])

{

$font1=$gfont1;

$font2=$gfont2;

}

$ln++;

$br='';

if($line)

{

if($ln%$line==0)

{

$br='

';

}

}

//$str.=$jg.'<a href="'.$public_r[newsurl].'e/tags/?tagid='.$r[tagid].$cs.'" target="_blank">'.$font1.$r[tagname].$snum.$font2.'</a>'.$br;

$str.=$jg.'<a href="'.$public_r[newsurl].'e/tags/'.$r[tagid].'.html" target="_blank">'.$font1.$r[tagname].$snum.$font2.'</a>'.$br;

$jg=$br?'':$showjg;

}

}

echo $str;

}

2.網(wǎng)站根目錄 增加.htaccess文件,內(nèi)容如下

 

 

 

復(fù)制代碼代碼如下:

RewriteEngine On

RewriteBase /

RewriteRule tag/(.*).html$ e/tags/?tagname=$1

RewriteRule e/tags/(.*).html$ e/tags/?tagid=$1

還要空間支持偽靜態(tài)

 

1.檢測Apache是否支持mod_rewrite 通過php提供的phpinfo()函數(shù)查看環(huán)境配置,通過Ctrl+F查找到“Loaded Modules”,其中列出了所有apache2handler已經(jīng)開啟的模塊,如果里面包括“mod_rewrite”,則已經(jīng)支持,不再需要繼續(xù)設(shè)置。

如果沒有開啟“mod_rewrite”,則打開目錄 您的apache安裝目錄“/apache/conf/” 下的 httpd.conf 文件,通過Ctrl+F查找到“LoadModule rewrite_module”,將前面的”#”號刪除即可。

如果沒有查找到,則到“LoadModule” 區(qū)域,在最后一行加入“LoadModule rewrite_module modules/mod_rewrite.so”(必選獨(dú)占一行),然后重啟apache服務(wù)器即可。

 

2.讓apache服務(wù)器支持.htaccess

 

修改httpd.conf文件

 

 

復(fù)制代碼代碼如下:

Options FollowSymLinks

AllowOverride None

 

改為

 

復(fù)制代碼代碼如下:

Options FollowSymLinks

AllowOverride All

分享到:
標(biāo)簽:優(yōu)化 帝國 靜態(tài)
用戶無頭像

網(wǎng)友整理

注冊時間:

網(wǎng)站:5 個   小程序:0 個  文章:12 篇

  • 51998

    網(wǎng)站

  • 12

    小程序

  • 1030137

    文章

  • 747

    會員

趕快注冊賬號,推廣您的網(wǎng)站吧!
最新入駐小程序

數(shù)獨(dú)大挑戰(zhàn)2018-06-03

數(shù)獨(dú)一種數(shù)學(xué)游戲,玩家需要根據(jù)9

答題星2018-06-03

您可以通過答題星輕松地創(chuàng)建試卷

全階人生考試2018-06-03

各種考試題,題庫,初中,高中,大學(xué)四六

運(yùn)動步數(shù)有氧達(dá)人2018-06-03

記錄運(yùn)動步數(shù),積累氧氣值。還可偷

每日養(yǎng)生app2018-06-03

每日養(yǎng)生,天天健康

體育訓(xùn)練成績評定2018-06-03

通用課目體育訓(xùn)練成績評定