我需要帮助。
我有WordPress 4.0和Microsoft-IIS / 7.5以及永久链接的自定义结构:/%category%/%postname%/
我的web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="WordPress Rule" 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?page_id={R:0}"/>
</rule>
<rule name="wordpress" patternSyntax="Wildcard">
<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"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
以下链接可以正常使用
http://example.com/pageurl/
http://example.com/posturl/
http://example.com/blog/
http://example.com/news/porsturl/
http://example.com/articles/porsturl/
http://example.com/category/articles/
http://example.com/category/articles/page/3/
网站也在博客页面上有“档案”块。链接的格式为 http://example.com/ 2014/04/
,但这不起作用。我收到 404 错误。
请告诉我这里有什么问题?
感谢。