全球主机交流论坛

标题: 哪位大牛帮忙转一下规则。。。 [打印本页]

作者: 火雪心    时间: 2011-3-18 14:38
标题: 哪位大牛帮忙转一下规则。。。
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 编辑 ]
作者: 我是小白    时间: 2011-3-18 15:15
小夜转的很好,可惜好久不上了!
作者: Globalization    时间: 2011-3-18 15:18
http://www.anilcetin.com/convert-apache-htaccess-to-nginx/
作者: Globalization    时间: 2011-3-18 15:18
Z.MJJ.HK
作者: edmin    时间: 2011-3-18 15:19
好像和上次小夜发小偷差不多
你自己对比下 试试




欢迎光临 全球主机交流论坛 (https://loc.1226.eu.org/) Powered by Discuz! X3.4