全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1081|回复: 4
打印 上一主题 下一主题

[疑问] 哪位大牛帮忙转一下规则。。。

[复制链接]
跳转到指定楼层
1#
发表于 2011-3-18 14:38:06 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
apache的
我要弄成nginx的


apache

RewriteEngine On
RewriteBase /
  

RewriteCond %{REQUEST_FILENAME} !-f
  
RewriteCond %{REQUEST_FILENAME} !-d

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

RewriteRule ^(.*)tou/list/([0-9]+)\.html$ $1/tou/list\.php\?id=$2  

RewriteRule ^(.*)tou/list/([0-9]+)-([0-9]+)\.html$  $1/tou/list\.php\?id=$2&page=$3

IIS
[ISAPI_Rewrite]
RepeatLimit 32

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

RewriteRule ^(.*)/tou/list/([0-9]+)\.html$ $1/tou/list\.php\?id=$2

RewriteRule ^(.*)/tou/list/([0-9]+)-([0-9]+)\.html$  $1/tou/list\.php\?id=$2&page=$3



NND,唯独没有nginx

[ 本帖最后由 火雪心 于 2011-3-18 14:40 编辑 ]
2#
发表于 2011-3-18 15:15:39 | 只看该作者
小夜转的很好,可惜好久不上了!
3#
发表于 2011-3-18 15:18:06 | 只看该作者
4#
发表于 2011-3-18 15:18:15 | 只看该作者
Z.MJJ.HK
5#
发表于 2011-3-18 15:19:48 | 只看该作者
好像和上次小夜发小偷差不多
你自己对比下 试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-12-23 15:17 , Processed in 0.265412 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表