规则。帮分析一下

WBOY
發布: 2016-06-13 13:35:58
原創
856 人瀏覽過

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

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重写,但是你都有疑问了那肯定是会有影响的。至于影响厉害不厉害还得问问看有实际经验的人,常理当然是条件越多越影响。

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!