隐藏与的.htaccess文件夹 [英] Hide folders with .htaccess

查看:199
本文介绍了隐藏与的.htaccess文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能隐藏在我的根文件夹中的文件夹? 以防万一,我的index.php就会消失,你知道吗?

我还可以显示404错误没有发现,如果有人要求他们吗?

解决方案

  IndexIgnore *
 

以上将prevent所有文件被列出。在这里, * 作为通配符。你可以在需要时有更具体的东西取代它。

Is it possible to hide the folders in my root folder? Just in case my index.php would disappear you know?

Could I also show 404 error not found if someone requests them?

解决方案

IndexIgnore *

The above would prevent all files from being listed. Here * acts as a wildcard. You could replace it with something more specific, if needed.

这篇关于隐藏与的.htaccess文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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