httpd.ini转为 .htaccess

[ISAPI_Rewrite]#3600=1hourCacheClockRate3600RepeatLimit32#Protecthttpd.iniandhttpd.pa... [ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

RewriteRule /ask/ask(\d+)\.html /ask/detail\.php\?aid=$1

RewriteRule /group/(\d+) /group/groupmain\.php\?mainid=$1
RewriteRule /group/party(\d+)\.html /group/party\.php\?mainid=$1
RewriteRule /group/article(\d+)\.html /group/article\.php\?mainid=$1
RewriteRule /group/photo(\d+)\.html /group/photo\.php\?mainid=$1
RewriteRule /group/user(\d+)\.html /group/user\.php\?mainid=$1
RewriteRule /group/post(\d+)\.html /group/post\.php\?mainid=$1
RewriteRule /group/read(\d+)\.html /group/read\.php\?fid=$1
RewriteRule /group/partyshow(\d+)\.html /group/partyshow\.php\?fid=$1

RewriteRule /home/(\d+) /home/main\.php\?uid=$1
RewriteRule /home/myarchive(\d+)\.html /home/myarchive\.php\?uid=$1
RewriteRule /home/myvideo(\d+)\.html /home/myvideo\.php\?uid=$1
RewriteRule /home/myphoto(\d+)\.html /home/myphoto\.php\?uid=$1
RewriteRule /home/mydiary(\d+)\.html /home/mydiary\.php\?uid=$1
RewriteRule /home/myask(\d+)\.html /home/myask\.php\?uid=$1
RewriteRule /home/mydating(\d+)\.html /home/mydating\.php\?uid=$1
RewriteRule /home/myfriend(\d+)\.html /home/myfriend\.php\?uid=$1
RewriteRule /home/mybbs(\d+)\.html /home/mybbs\.php\?uid=$1
RewriteRule /home/mycontact(\d+)\.html /home/mycontact\.php\?uid=$1
RewriteRule /home/v(\d+)\.html /home/v\.php\?fid=$1
RewriteRule /home/p(\d+)\.html /home/p\.php\?fid=$1
RewriteRule /home/diary(\d+)\.html /home/diary\.php\?fid=$1
RewriteRule /home/ask(\d+)\.html /home/ask\.php\?fid=$1
RewriteRule /home/dating(\d+)\.html /home/dating\.php\?fid=$1
RewriteRule /home/([1-2]+)p(\d+)u(\d+)\.html /home/p\.php\?act=$1\&fid=$2&uid=$3

RewriteRule /chat/(\d+)\.html /chat/index\.php\?uid=$1
RewriteRule /chat/chksend(\d+)\.html /chat/chksend\.php\?uid=$1

RewriteRule /bidderuser(\d+)\.html /bidderuser\.php\?uid=$1
RewriteRule /biddergroup(\d+)\.html /biddergroup\.php\?mainid=$1
RewriteRule /bidderdating(\d+)\.html /bidderdating\.php\?did=$1
RewriteRule /clinic/detail(\d+)\.html /clinic/detail\.php\?fid=$1
RewriteRule /story/detail(\d+)\.html /story/detail\.php\?fid=$1
RewriteRule /news(\d+)\.html /newsshow\.php\?id=$1
展开
 我来答
php000
2011-12-12 · TA获得超过217个赞
知道答主
回答量:93
采纳率:0%
帮助的人:62.5万
展开全部
RewriteEngine On
RewriteBase

RewriteRule ask/ask(\d+)\.html$ ask/detail\.php?aid=$1

RewriteRule group/(\d+) group/groupmain\.php?mainid=$1
RewriteRule group/party(\d+)\.html$ group/party\.php?mainid=$1
RewriteRule group/article(\d+)\.html$ group/article\.php?mainid=$1
RewriteRule group/photo(\d+)\.html$ group/photo\.php?mainid=$1
RewriteRule group/user(\d+)\.html$ group/user\.php?mainid=$1
RewriteRule group/post(\d+)\.html$ group/post\.php?mainid=$1
RewriteRule group/read(\d+)\.html$ group/read\.php?fid=$1
RewriteRule group/partyshow(\d+)\.html$ group/partyshow\.php?fid=$1

RewriteRule home/(\d+)$ home/main\.php?uid=$1
RewriteRule home/myarchive(\d+)\.html$ home/myarchive\.php?uid=$1
RewriteRule home/myvideo(\d+)\.html$ home/myvideo\.php?uid=$1
RewriteRule home/myphoto(\d+)\.html$ home/myphoto\.php?uid=$1
RewriteRule home/mydiary(\d+)\.html$ home/mydiary\.php?uid=$1
RewriteRule home/myask(\d+)\.html$ home/myask\.php?uid=$1
RewriteRule home/mydating(\d+)\.html$ home/mydating\.php?uid=$1
RewriteRule home/myfriend(\d+)\.html$ home/myfriend\.php?uid=$1
RewriteRule home/mybbs(\d+)\.html$ home/mybbs\.php?uid=$1
RewriteRule home/mycontact(\d+)\.html$ home/mycontact\.php?uid=$1
RewriteRule home/v(\d+)\.html$ home/v\.php?fid=$1
RewriteRule home/p(\d+)\.html$ home/p\.php?fid=$1
RewriteRule home/diary(\d+)\.html$ home/diary\.php?fid=$1
RewriteRule home/ask(\d+)\.html$ home/ask\.php?fid=$1
RewriteRule home/dating(\d+)\.html$ home/dating\.php?fid=$1
RewriteRule home/([1-2]+)p(\d+)u(\d+)\.html$ home/p\.php?act=$1\&fid=$2&uid=$3

RewriteRule chat/(\d+)\.html$ chat/index\.php?uid=$1
RewriteRule chat/chksend(\d+)\.html$ chat/chksend\.php?uid=$1

RewriteRule bidderuser(\d+)\.html$ bidderuser\.php?uid=$1
RewriteRule biddergroup(\d+)\.html$ biddergroup\.php?mainid=$1
RewriteRule bidderdating(\d+)\.html$ bidderdating\.php?did=$1
RewriteRule clinic/detail(\d+)\.html$ clinic/detail\.php?fid=$1
RewriteRule story/detail(\d+)\.html$ story/detail\.php?fid=$1
RewriteRule news(\d+)\.html$ newsshow\.php?id=$1
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
您可能需要的服务
百度律临官方认证律师咨询
平均3分钟响应 | 问题解决率99% | 24小时在线
立即免费咨询律师
17939人正在获得一对一解答
哈尔滨冰雪奇缘1分钟前提交了问题
天津金色童年5分钟前提交了问题
广州萤火虫6分钟前提交了问题
下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消
还有疑问? 马上咨询39556位在线律师,3分钟快速解答
立即免费咨询律师

辅 助

模 式