IIS7.5 的wordpress 的伪静态web.config配置

IIS7.5 的wordpress 的伪静态web.config配置,第1张

概述在wordpress根目录,将以下内容保存为web.config文件。9521223275e4a92d4e6f8c_000000

下面是内存溢出 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配置所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/zz/1015034.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存