Using .htaccess to ALLOW directory browsing



By default the apache install for most sites now restricts directory browsing. It’s a good idea, you don’t want just ANYTHING to be browsable on a web server, but there comes a time that it makes life easier for a directory (or tree of directories) to be browsable without having to write (copy and paste) links to a bunch of files. Fortunately, .htaccess files can be used for many things and this, of course, is one of them…


In my case, I was tired of linking to 5 rpm’s when posting a new version of rpms on the site, so… I found a suggestion that putting this:

Options +Indexes

in an .htaccess file in the folder I wanted to browse would work… strangely it didn’t. In my case, I found I had to do this…

Options +FollowSymLinks +Indexes

and things started working correctly. If you want a whole directory tree to be browsable the .htaccess file need only be put in the top directory of that tree and that browsable property will be “inherited” through all the subdirectories.

Related Posts

Blog Traffic Exchange Related Posts
  • Big Go-Daddy hosting attack In what feels like a continuation of recent bad news related to major hacks and data losses.....George Ou reports on a BIG hack of GoDaddy hosting customers. There was also a big hack-athon by Turkish hackers over the last week that will be recorded as the biggest mass-web-site-defacement on record.........
  • Having multiple domains direct to one web site Recently I've consolidated a few domain names that I've acquired to direct to this site, and a few others to direct to another site that I maintain. One of the things that I wondered about after I set things up in the sites control panel to receive requests as the......
  • Netscape 7.1 download file could not be saved I've run across this a couple of times and to save me a few more Google searches.... Under Netscape 7.1, trying to download a file, there is a long message (with a temporary file address), and the following... (long path to file like c:\windows\temp\..... ) could not be saved because......
Blog Traffic Exchange Related Websites
  • How To Choose A Reliable Web Hosting Service For Your Website I am positive that if you are visiting this page, you will be interested in Hostgator Review. Selecting the correct web host can either make your website wonderful or horrible. This is because the web host should be considered to be the foundation of your website. In order to have......
  • How To Pick Out A Reliable Web Hosting Service For Your Website Selecting the correct web host can either make your website grow or tear it down. This is because the web host should be considered to be the foundation of your website. In order to have a longer term website and make sure you provide a good experience for your web......
  • Greenville Host Green Web Hosting Examine Greenville Host Green Web Hosting Examine There's lots of speak on the net and in the so-called actual world about "going green." Although it is straightforward to understand the will need in sectors including energy and construction, the concept of heading green in cyberspace can be a little more challenging......
www.pdf24.org    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site