下面是内存溢出 jb51.cc 通过网络收集整理的代码片段。内存溢出小编现在分享给大家,也给大家做个参考。
在 wordpress 根目录,将以下内容保存为 web.config 文件。
<?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>
以上是内存溢出(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
总结以上是内存溢出为你收集整理的IIS7.5 的wordpress 的伪静态web.config配置全部内容,希望文章能够帮你解决IIS7.5 的wordpress 的伪静态web.config配置所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)