根据this issue on the WordPress trac, 问题是规则4和5。
解决方案是更改url参数并添加1,因此,不是这样:
<rule name="WordPress Rule 4" stopProcessing="true">
<match url="^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
<action type="Rewrite" url="{R:1}" />
</rule>
<rule name="WordPress Rule 5" stopProcessing="true">
<match url="^([_0-9a-zA-Z-]+/)?([_0-9a-zA-Z-]+/)?(.*\\.php)$" ignoreCase="false" />
<action type="Rewrite" url="{R:2}" />
</rule>
您有:
<rule name="WordPress Rule 4" stopProcessing="true">
<match url="^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" />
<action type="Rewrite" url="{R:2}" />
</rule>
<rule name="WordPress Rule 5" stopProcessing="true">
<match url="^([_0-9a-zA-Z-]+/)?([_0-9a-zA-Z-]+/)?(.*\\.php)$" ignoreCase="false" />
<action type="Rewrite" url="{R:3}" />
</rule>
进行此更改可以使多站点功能正常工作。