将nginx的rewrite规则转换成iis下的? 200
NGINX下rewrite的规则是这样写的:if($host~*^([a-z0-9]+)\.ynjsw\.com$){rewrite^(.*)/([a-z]+)\.htm...
NGINX下rewrite的规则是这样写的:if ( $host ~* ^([a-z0-9]+)\.ynjsw\.com$) {
rewrite ^(.*)/([a-z]+)\.html$ $1/?m=$2 last;
rewrite ^(.*)/pics-([0-9]+)\.html$ $1/?m=pics&psid=$2 last;
rewrite ^(.*)/pics-([0-9]+)-([0-9]+)\.html$ $1/?m=pics&psid=$2&pid=$3 last;
rewrite ^(.*)/newsview-([0-9]+)\.html$ $1/?m=newsview&id=$2 last;
}
如何把它转换成IIS的规则? 展开
rewrite ^(.*)/([a-z]+)\.html$ $1/?m=$2 last;
rewrite ^(.*)/pics-([0-9]+)\.html$ $1/?m=pics&psid=$2 last;
rewrite ^(.*)/pics-([0-9]+)-([0-9]+)\.html$ $1/?m=pics&psid=$2&pid=$3 last;
rewrite ^(.*)/newsview-([0-9]+)\.html$ $1/?m=newsview&id=$2 last;
}
如何把它转换成IIS的规则? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询