什么是htaccess的选项-Indexes呢? [英] What is the htaccess Options -Indexes for?

查看:233
本文介绍了什么是htaccess的选项-Indexes呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看着在apache.org网站上的解释,但它没有办法,我可以理解解释。我发现了一些信息在这里<一href="http://stackoverflow.com/questions/1767785/htaccess-file-options-indexes-on-subdirectories">.htaccess文件选项-Indexes子目录的,但并不能说明它的。

I looked at the explanation in the apache.org site but it didn’t explained in a way I can understand. I found some info here .htaccess File Options -Indexes on Subdirectories but it doesn’t explain it either.

推荐答案

的索引选项设置是否可以通过浏览目录,或者不。如果索引设置为正,并且目录有文件(不管的)没有的index.html或index.php文件,它会显示就像你的文件管理器会做目录的内容。因此,如果有十个图像在那里,它简单地示出了它们作为与链接到实际图像的列表。您可以点击他们,打开它们。

The Indexes option sets whether you can "browse" the directory or not. If indexes is set to plus, and the directory has no index.html or index.php (of whatever) file, it will show the contents of the directory just like your filemanager would do. So if there are ten images in there, it simply shows them as a list with links to the actual image. You can click them and open them.

在大多数情况下,这是不是你想要的。你不希望别人看到的是那个文件夹内。于是你-Indexes将其关闭。

Most of the time this is not what you want. You don't want others to see what is inside that folder. So then you turn it off with -Indexes.

在这里你可以看到一个开放目录的例子,因为他们是所谓: http://www.ecoutetpartage.fr/images/

Here you can see an example of an open dir, as they are called: http://www.ecoutetpartage.fr/images/

这篇关于什么是htaccess的选项-Indexes呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆