: Disable directory indexing for all directories using root htaccess How to disable directory indexing for all directories using root htaccess? Using this line Options -Indexes only disable listing
How to disable directory indexing for all directories using root htaccess?
Using this line Options -Indexes only disable listing on directory where the htaccess put.
I'm sure there's a lot of directories that need the listing disabled and it's better if i can use single root htaccess to do that.
More posts by @XinRu657
2 Comments
Sorted by latest first Latest Oldest Best
If you use cPanel, you can change the setting through there:
Select Advanced > Indexes (might be called Index Manager depending on your version of cPanel)
Click public_html (or whatever your web root is)
Select No Indexing
Click Save
Turns out Options -Indexes on root htaccess will disable indexing for its sub folder. Case closed.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.