首页 >后端开发 >php教程 > 规则。帮分析一下

规则。帮分析一下

WBOY
WBOY原创
2016-06-13 13:35:58867浏览

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

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