您现在的位置是:首页 > 其他

李清波 2017-07-15 其他 1910 复制当前网址

wordpress专用URL Rewrite伪静态文件web.config(For IIS7/IIS7.5/IIS8.0))

wordpress专用URL Rewrite伪静态文件web.config(For IIS7/IIS7.5/IIS8.0))

<?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <rule name="WordPress" stopProcessing="true">
                        <match url="^(.*)$" />
                        <conditions>
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        </conditions>
                        <action type="Rewrite" url="index.php" appendQueryString="true" />
                    </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>


文章来源:https://liqingbo.com/blog-1422.html

评论