lan4683372 发表于 2019-5-24 00:00:00

wordpress网站程序iis伪静态规则

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
    <rewrite>
      <rules>
                <rule name="category">
                  <match url="category/?(.*)" />
                  <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                  <action type="Rewrite" url="/index.php?category_name={R:1}" appendQueryString="false" logRewrittenUrl="false" />
                </rule>
                <rule name="tags">
                  <match url="tag/?(.*)" />
                  <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                  <action type="Rewrite" url="index.php?tag={R:1}" />
                </rule>
                <rule name="Main Rule" stopProcessing="true">
                  <match url=".*" />
                  <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                  </conditions>
                  <action type="Rewrite" url="index.php/{R:0}" />
                </rule>
                <rule name="wordpress" patternSyntax="Wildcard">
                  <match url="*" />
                  <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                  </conditions>
                  <action type="Rewrite" url="index.php" />
                </rule></rules>
    </rewrite>
</system.webServer>
</configuration>


ttyn727 发表于 2019-5-24 00:00:00

谢谢您的分享!

intelcom 发表于 2019-5-24 00:00:11

膜拜神贴,后面的请保持队形~

694207667 发表于 2019-5-24 00:00:31

大神,我被你雷到了~你是10万社区社区的雷神吧.....

keajoo 发表于 2019-5-24 00:00:33

不管你信不信,反正我是信了。

静静的读你 发表于 2019-5-24 00:00:37

膜拜神贴,后面的请保持队形~

jeff963 发表于 2019-5-24 00:01:14

看帖看完了至少要顶一下,还可以加入到淘帖哦!

静静的读你 发表于 2019-5-24 00:01:36

谢谢您的分享!

keajoo 发表于 2019-5-24 00:02:11

谢谢楼主分享~~~~~~

icihdlfgxf 发表于 2019-5-24 00:03:28

太棒了,感谢楼主,10万社区是我家维护靠大家.
页: [1]
查看完整版本: wordpress网站程序iis伪静态规则