知识库

查找有关信息功能,故障排除指南,
以及与虚拟主机相关的其他技术信息的文章。

How to setup Directory Listing

引用:
directory listing listing list of files htaccess

When a web browser is pointed to a directory on your website which does not have an index.html file in it, the files in that directory can be listed on a web page. To have the web server produce a list of files for such directories, use the below line in your .htaccess  (can be found in FTP -> public_html folder):

Options +Indexes

To have an error (403 - Forbidden) returned instead, use this line:

Options -Indexes

  • 简单易用的建站助手
  • 99.9%在线时间保证
  • 24/7 在线支持
  • 强大的控制面板
  • 30天退款保证
限时优惠促销!
低至
4
75
CNH
/月
节省 91%
立即开始