通过重定向preventing目录列表?重定向、目录、列表、preventing

2023-09-02 00:46:41 作者:Naive 幼稚

我想用的.htaccess prevent目录列表。 我有内/位置页/但我没有一个索引文件。因此,林想重定向到/location/about.php为例。

I'm wanting to use .htaccess to prevent directory listing. I've got pages within /location/ but I don't have an index file. So Im wanting to redirect to /location/about.php for example.

有没有办法做到这一点,而无需创建一个index.html,然后将请求重定向到? 感谢您的帮助!

Is there a way to do this, without creating a index.html and redirecting requests to that? Thanks for the help!

推荐答案

如果你要求的地方的index.html',看到了一个文件的