Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide folders with .htaccess

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?


1 Answers

What you want is probably

Options -Indexes

which will just give a 404 error if no DirectoryIndex file is found.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!