首頁 >後端開發 >php教程 >规则。帮分析一下

规则。帮分析一下

WBOY
WBOY原創
2016-06-13 10:10:03783瀏覽

规则高手进。帮分析一下,
规则写成这样是不是有些多?会不会对网站或是服务器代来负担 ?

RewriteEngine On
RewriteRule ^(.*)$ http://www.vipccc.net/$1 [R=301,L] 
RewriteRule ^miyu/(.+).html$ miyu/?id=$1
RewriteRule ^baijiaxing/(.+).html$ baijiaxing/?id=$1
RewriteRule ^xiehouyu/(.+).html$ xiehouyu/?id=$1
RewriteRule ^quhao/(.+).html$ quhao/?id=$1
RewriteRule ^chengyu/(.+).html$ chengyu/?id=$1
RewriteRule ^jincheng/(.+).html$ jincheng/?id=$1
RewriteRule ^youbian/(.+).html$ youbian/?id=$1
RewriteRule ^raokouling/(.+).html$ raokouling/?id=$1
RewriteRule ^naojinjizhuanwan/(.+).html$ naojinjizhuanwan/?id=$1
RewriteRule ^shipu/(.+).html$ shipu/?id=$1
RewriteRule ^jiemeng/(.+).html$ jiemeng/?id=$1
RewriteRule ^jiufang/(.+).html$ jiufang/?id=$1
RewriteRule ^zhoupu/(.+).html$ zhoupu/?id=$1
RewriteRule ^jibing/(.+).html$ jibing/?id=$1
RewriteRule ^pianfang/(.+).html$ pianfang/?id=$1
RewriteRule ^zhongcaoyao/(.+).html$ zhongcaoyao/?id=$1
RewriteRule ^yaopin/(.+).html$ yaopin/?id=$1
RewriteRule ^chengyujielong/(.+).html$ chengyujielong/?id=$1
RewriteRule ^shici/(.+).html$ shici/?id=$1
RewriteRule ^zidian/(.+).html$ zidian/?id=$1
RewriteRule ^suoxie/(.+).html$ suoxie/?id=$1
RewriteRule ^xiaoshuo/(.+).html$ xiaoshuo/?id=$1
RewriteRule ^sanwen/(.+).html$ sanwen/?id=$1
RewriteRule ^sige/(.+).html$ sige/?id=$1
RewriteRule ^flag/([0-9]{4})([0-9]*)\.html$ flag/index.php?year=$1&month=$2 [QSA,L]  


------解决方案--------------------
还没玩url重写,但是你都有疑问了那肯定是会有影响的。至于影响厉害不厉害还得问问看有实际经验的人,常理当然是条件越多越影响。

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn