【发布时间】:2011-06-07 12:30:34
【问题描述】:
在我的 /httpdocs/ 文件夹中,我需要更改 index.php 的文件名。我通过在我的 .htaccess 文件中写一个新行来做到这一点:
DirectoryIndex index2.php
但是,/httpdocs/ 下的所有子文件夹似乎都在为其 DirectoryIndex 文件寻找 index2.php。有没有一种方法可以更改我的 /httpdocs/ 文件夹的 DirectoryIndex 文件,而不会递归地影响其下的每个文件夹?
【问题讨论】:
标签: .htaccess recursion directoryindex