我的 Windows 服务器上的某个目录中有一个特定的 PHP 文件,需要您添加 index.php 才能查看它。
以下作品: http ://example.org/placestorun/index
但以下不起作用: http ://example.org/placestorun/
我使用文件夹的 web.config 文件中的以下代码将 web.config 文件添加到 places to run 目录,使其在没有 index.php 的情况下工作:
<configuration>
<system.webServer>
<defaultDocument>
<files>
<add value="index.php" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
上述方法不起作用。