wordpress在iis7下中文tag不能会看法决方案

  wordpress 已经内置了 IIS7 URL Rewrite 的支持,但对付中文用户来说,官方内置的伪静态法则不能完好的支持中文tag的问题。固然可以变动系统文件来办理,但较量贫苦,并且不利便,所以一直没先容过。此刻贴出一个自用的的法则,可以办理wordpress的中文tag的问题。

将下列代码插手到web目次下的web.config文件的之后即可。

<rewrite>
<rules>
<clear />
<rule name="wordpress2.7" 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" />
</rule>
<rule name="chinese tag" stopProcessing="true">
<match url="/tag/(.*)" />
<conditions logicalGrouping="MatchAll" />
<action type="Rewrite" url="/index\.php\?tag={R:1}" />
</rule>
</rules>
</rewrite>

本文转自:wordpress FOR IIS7 URL Rewrite

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/10814.html