IIS

系统管理员 2026-01-14 17:36 4 阅读 0 点赞
<rule name="payrule1_rewrite" stopProcessing="true"> <match url="^(.[a-zA-Z0-9-_]+).html"/> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> </conditions> <action type="Rewrite" url="index.php?mod={R:1}"/> </rule> <rule name="payrule2_rewrite" stopProcessing="true"> <match url="^pay/(.*)"/> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> </conditions> <action type="Rewrite" url="pay.php?s={R:1}"/> </rule> <rule name="payrule3_rewrite" stopProcessing="true"> <match url="^api/(.*)"/> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> </conditions> <action type="Rewrite" url="api.php?s={R:1}"/> </rule> <rule name="payrule4_rewrite" stopProcessing="true"> <match url="^doc/(.[a-zA-Z0-9-_]+).html"/> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> </conditions> <action type="Rewrite" url="index.php?doc={R:1}"/> </rule>
评论 (0)
登录 后参与评论

暂无评论