ISAPI Rewrite静态规则转换为Nginx Rewrite ?
RewriteRule(.*)/aid_([a-z]+).htm$1/ask\.php\?id=$2[I]RewriteRule(.*)/([a-z]+)$1/list\...
RewriteRule (.*)/aid_([a-z]+).htm $1/ask\.php\?id=$2 [I]
RewriteRule (.*)/([a-z]+) $1/list\.php\?id=$2 [I]
RewriteRule (.*)/([0-9]+)_([a-z]+)-([0-9]+) $1/list\.php\?id=$3&lm=$2&p=$4 [I]
RewriteRule (.*)/tag-([0-9]+)-([0-9]+)-(.+)-([0-9]+)$ $1/tag\.php\?lm=$2&pn=$3&word=$4&cid=$5
RewriteRule (.*)/index\.htm $1/index\.php
怎么写?
rewrite ^/aid_([A-Za-z]+).htm$ /ask.php?id=$1;
rewrite ^/([A-Za-z]+)$ /list.php?id=$1;
rewrite ^/([0-9]+)_([A-Za-z]+)-([0-9]+)$ /list.php?id=$2&lm=$1&p=$3;
rewrite ^/tag-([0-9]+)-([0-9]+)-(.+)-([0-9]+)$ /tag.php?lm=$1&pn=$2&word=$3&cid=$4;
rewrite ^/index.htm /index.php; 展开
RewriteRule (.*)/([a-z]+) $1/list\.php\?id=$2 [I]
RewriteRule (.*)/([0-9]+)_([a-z]+)-([0-9]+) $1/list\.php\?id=$3&lm=$2&p=$4 [I]
RewriteRule (.*)/tag-([0-9]+)-([0-9]+)-(.+)-([0-9]+)$ $1/tag\.php\?lm=$2&pn=$3&word=$4&cid=$5
RewriteRule (.*)/index\.htm $1/index\.php
怎么写?
rewrite ^/aid_([A-Za-z]+).htm$ /ask.php?id=$1;
rewrite ^/([A-Za-z]+)$ /list.php?id=$1;
rewrite ^/([0-9]+)_([A-Za-z]+)-([0-9]+)$ /list.php?id=$2&lm=$1&p=$3;
rewrite ^/tag-([0-9]+)-([0-9]+)-(.+)-([0-9]+)$ /tag.php?lm=$1&pn=$2&word=$3&cid=$4;
rewrite ^/index.htm /index.php; 展开
1个回答
Storm代理
2023-07-25 广告
2023-07-25 广告
StormProxies是一家提供动态代理服务器服务的企业,旨在帮助用户更好地管理网络访问和安全。以下是一些关于StormProxies的IP动态代理服务的特点:1. 高匿名性:StormProxies的动态代理服务器具有高匿名性,可以有效...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询