下面这段nginx伪静态如何转换成IIS的伪静态?
JzKx 2021-01-18 06:24:44 location /wap/ {
try_files $uri /wap/index.html;
}
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
这样写不管用(核心用的TP5)
<rules>
<rule name="web_wap" stopProcessing="true">
<match url="^wap/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/wap/index.html" appendQueryString="true" />
</rule>
<rule name="web" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" />
</rule>
</rules>