Typecho博客如何设置在宝塔IIS伪静态规则

180it 2020-11-19 PM 1606℃ 0条
<?xml version="1.0" ?>
<rules>
    <rule name="Main Rule_rewrite" stopProcessing="true">
        <match url="^(.*)$"/>
        <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/{R:1}"/>
    </rule>
</rules>

360截图-346651593.jpg

然后是typecho后台的设置,我们在“设置”-“永久链接设置”中的“是否使用地址重写功能”处勾选“启用”,然后保存。
20257385-60ca9b7effbdb517.webp.jpg

如果页面出现如下图所示信息,直接勾选,然后保存即可。
20257385-110effd319b10b7f.webp.jpg

支付宝打赏支付宝打赏 微信打赏微信打赏

如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!

标签: none

Typecho博客如何设置在宝塔IIS伪静态规则