How can i hide folders using htaccess.
I tried by my own but failed

You can’t hide folders from the Directory Listing using .htaccess, but renaming a folder to e.g. .nameofafolder should do the trick.

I’m sorry, but can you please clarify what you want to do exactly? What do you want to hide exactly from whom?

You could “hide” folders by:

  • Disabling directory listing (so you can’t see a list of files but still access the files themselves).
  • Blocking access to the entire directory (which blocks both file lists and accessing these files).
  • Password protecting the directory (which blocks access to all files unless you are logged in).

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.