Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hide index directory files


dwbrown

Recommended Posts

Hello all, I have noticed that all files below the root directory of a catalog, say, /catalog/includes will display all files in a browser as a hierarchy of directory files all viewable from the browser. How to hide the files below /catalog? Please advise :-)

Link to comment
Share on other sites

Read up on how to use .htaccess

 

In the meantime, place the following line in a .htaccess file in your top level directory.

Options -Indexes

This will turn off indexing of that directory and all sub-directories.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...