求高手帮忙把伪静态规则转变成IIS的伪静态规则,我有Apache规则以及Nginx规则代码,希望帮我转变成IIS的 95
注:Apache服务器,伪静态规则如下:RewriteEngineonRewriteBase/RewriteRule^index\.htmlindex.php[L]Rew...
注:
Apache服务器,伪静态规则如下:
RewriteEngine on
RewriteBase /
RewriteRule ^index\.html index.php [L]
RewriteRule ^index-([0-9\_]*)-(0|1)?-([0-9]*)\.html$ index.php?area_id=$1&list_mode=$2&p=$3 [L]
RewriteRule ^list_([a-z]+)-([0-9\_]*)-(0|1)?-([0-9]*)\.html$ list.php?mode=$1&area_id=$2&list_mode=$3&p=$4 [L]
RewriteRule ^article_([a-z]+)-([0-9]+)-([0-9]*)\.html$ article.php?mode=$1&id=$2&p=$3 [L]
如为Nginx,规则代码如下:
location / {
rewrite ^(.*)/index\.html$ $1/index.php last;
rewrite ^(.*)/index-([0-9\_]*)-(0|1)?-([0-9]*)\.html$ $1/index.php?area_id=$2&list_mode=$3&p=$4 last;
rewrite ^(.*)/list_([a-z]+)-([0-9\_]*)-(0|1)?-([0-9]*)\.html$ $1/list.php?mode=$2&area_id=$3&list_mode=$4&p=$5 last;
rewrite ^(.*)/article_([a-z]+)-([0-9]+)-([0-9]*)\.html$ $1/article.php?mode=$2&id=$3&p=$4 last;
}
以上的是 另外服务器的规则 我想改为 windows IIS 规则 高手帮帮忙啊 展开
Apache服务器,伪静态规则如下:
RewriteEngine on
RewriteBase /
RewriteRule ^index\.html index.php [L]
RewriteRule ^index-([0-9\_]*)-(0|1)?-([0-9]*)\.html$ index.php?area_id=$1&list_mode=$2&p=$3 [L]
RewriteRule ^list_([a-z]+)-([0-9\_]*)-(0|1)?-([0-9]*)\.html$ list.php?mode=$1&area_id=$2&list_mode=$3&p=$4 [L]
RewriteRule ^article_([a-z]+)-([0-9]+)-([0-9]*)\.html$ article.php?mode=$1&id=$2&p=$3 [L]
如为Nginx,规则代码如下:
location / {
rewrite ^(.*)/index\.html$ $1/index.php last;
rewrite ^(.*)/index-([0-9\_]*)-(0|1)?-([0-9]*)\.html$ $1/index.php?area_id=$2&list_mode=$3&p=$4 last;
rewrite ^(.*)/list_([a-z]+)-([0-9\_]*)-(0|1)?-([0-9]*)\.html$ $1/list.php?mode=$2&area_id=$3&list_mode=$4&p=$5 last;
rewrite ^(.*)/article_([a-z]+)-([0-9]+)-([0-9]*)\.html$ $1/article.php?mode=$2&id=$3&p=$4 last;
}
以上的是 另外服务器的规则 我想改为 windows IIS 规则 高手帮帮忙啊 展开
展开全部
<rule name="bellong rewrite1" stopProcessing="true">
<match url="^(.*)/index\.html" ignoreCase="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="{R:1}/index.php" appendQueryString="false" />
</rule><rule name="bellong rewrite2" stopProcessing="true">
<match url="^(.*)/index-([0-9\_]*)-(0|1)?-([0-9]*)\.html" ignoreCase="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="{R:1}/index.php?area_id={R:2}&list_mode={R:3}&p={R:4}" appendQueryString="false" />
</rule><rule name="bellong rewrite3" stopProcessing="true">
<match url="^(.*)/list_([a-z]+)-([0-9\_]*)-(0|1)?-([0-9]*)\.html" ignoreCase="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="{R:1}/list.php?mode={R:2}&area_id={R:3}&list_mode={R:4}&p={R:5}" appendQueryString="false" />
</rule><rule name="bellong rewrite4" stopProcessing="true">
<match url="^(.*)/article_([a-z]+)-([0-9]+)-([0-9]*)\.html" ignoreCase="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="{R:1}/article.php?mode={R:2}&id={R:3}&p={R:4}" appendQueryString="false" />
</rule>
Storm代理
2023-07-25 广告
2023-07-25 广告
StormProxies是一家提供动态代理服务器服务的企业,旨在帮助用户更好地管理网络访问和安全。以下是一些关于StormProxies的IP动态代理服务的特点:1. 高匿名性:StormProxies的动态代理服务器具有高匿名性,可以有效...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询