pay/IIS.txt
2025-11-28 10:08:12 +08:00

33 lines
1.4 KiB
Plaintext

<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>