我从来没有在PHP上使用过IIS服务器,但我的问题是我可以为web.config中的子文件夹设置默认文档类型,这就是我所拥有的记(它的一个bbPress的论坛):在IIS上的子文件夹中不同的默认文档类型6
<location path="forum">
<system.webServer>
<defaultDocument>
<files>
<add value="index.php" />
</files>
</defaultDocument>
</system.webServer>
</location>
感谢和虚拟啤酒谁的答案的人:d