.htaccess转成httpd.ini

RewriteEngineOnRewriteRule^index\.html$index.php[L]RewriteRule^sale/d-(.*?)\.html$sal... RewriteEngine On

RewriteRule ^index\.html$ index.php [L]
RewriteRule ^sale/d-(.*?)\.html$ sale/detail.php?id=$1 [L]
RewriteRule ^rent/d-(.*?)\.html$ rent/detail.php?id=$1 [L]

RewriteRule ^newHouse/d-(.*?)\.html$ newHouse/detail.php?id=$1 [L]
RewriteRule ^newHouse/p-(.*?)\.html$ newHouse/photo.php?id=$1 [L]
RewriteRule ^newHouse/s-(.*?)\.html$ newHouse/structure.php?id=$1 [L]

RewriteRule ^community/g-(.*?)\.html$ community/general.php?id=$1 [L]
RewriteRule ^community/p-(.*?)\.html$ community/photo.php?id=$1 [L]
RewriteRule ^community/d-(.*?)\.html$ community/structure.php?id=$1 [L]

RewriteRule ^shop/([0-9]+)$ shop/index.php?id=$1 [L]
RewriteRule ^shop/e-(.*?)\.html$ shop/evaluate.php?id=$1 [L]
RewriteRule ^shop/p-(.*?)\.html$ shop/profile.php?id=$1 [L]

RewriteRule ^([0-9]+)/spacelist(.+)$ index.php?uid/$1/action/spacelist/type$2 [L]
RewriteRule ^([0-9]+)/viewspace(.+)$ index.php?uid/$1/action/viewspace/itemid$2 [L]
RewriteRule ^([0-9]+)/viewbbs(.+)$ index.php?uid/$1/action/viewbbs/tid$2 [L]
RewriteRule ^([0-9]+)/(.*)$ index.php?uid/$1/$2 [L]
RewriteRule ^([0-9]+)$ index.php?uid/$1 [L]

RewriteRule ^action(.+)$ index.php?action$1 [L]
RewriteRule ^category(.+)$ index.php?action/category/catid$1 [L]
RewriteRule ^viewnews(.+)$ index.php?action/viewnews/itemid$1 [L]
RewriteRule ^viewthread(.+)$ index.php?action/viewthread/tid$1 [L]
RewriteRule ^mygroup(.+)$ index.php?action/mygroup/gid$1 [L]
展开
 我来答
sc4679
2010-12-11 · 超过16用户采纳过TA的回答
知道答主
回答量:45
采纳率:0%
帮助的人:38.5万
展开全部
呵呵,你用的安乐业的程序是吧!
[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

RewriteRule ^(.*)/sale/d-([0-9]+)\.html$ $1/sale/detail\.php\?id=$2
RewriteRule ^(.*)/rent/d-([0-9]+)\.html$ $1/rent/detail\.php\?id=$2

RewriteRule ^(.*)/newhouse/d-([0-9]+)\.html$ $1/newhouse/detail\.php\?id=$2
RewriteRule ^(.*)/newHouse/d-([0-9]+)\.html$ $1/newHouse/detail\.php\?id=$2
RewriteRule ^(.*)/newHouse/p-([0-9]+)\.html$ $1/newHouse/photo\.php\?id=$2
RewriteRule ^(.*)/newHouse/s-([0-9]+)\.html$ $1/newHouse/structure\.php\?id=$2

RewriteRule ^(.*)/shop/([0-9]+)$ $1/shop/index\.php\?id=$2
RewriteRule ^(.*)/shop/e-([0-9]+)\.html$ $1/shop/evaluate\.php\?id=$2
RewriteRule ^(.*)/shop/p-([0-9]+)\.html$ $1/shop/profile\.php\?id=$2

RewriteRule ^(.*)/community/g-([0-9]+)\.html$ $1/community/general\.php\?id=$2
RewriteRule ^(.*)/community/p-([0-9]+)\.html$ $1/community/photo\.php\?id=$2
RewriteRule ^(.*)/community/d-([0-9]+)\.html$ $1/community/structure\.php\?id=$2
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
您可能需要的服务
百度律临官方认证律师咨询
平均3分钟响应 | 问题解决率99% | 24小时在线
立即免费咨询律师
10939人正在获得一对一解答
成都星星点灯5分钟前提交了问题
天津金色童年5分钟前提交了问题
福州梦中仙子3分钟前提交了问题
下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

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

说明

0/200

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

辅 助

模 式