规则。帮分析一下

WBOY
Release: 2016-06-13 13:35:58
Original
856 people have browsed it

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

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!