Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hide index directory files


dwbrown

Recommended Posts

Posted

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 :-)

Posted

Either put a zero-length index.htm file in the directory, or change the directory permissions to disallow indexing.

Posted

Have a look in the tips and tricks forum somebody posted the fix for that problem

 

HTH

The_Bear

Posted

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.

Archived

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

×
×
  • Create New...