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
  • WMF exploit through indexing software One of the vectors that has been mentioned early on is the infection of a system through the WMF exploit even when the exploited file was downloaded through a dos command shell. At first this seemed absurd, but it appeared that Google Desktop search was indexing files dynamically and once......
  • Asheville based Web Design, VPS Hosting and SEO Services [/caption] Change is constant. The last couple of years I have been doing less onsite computer service. Health has been one large reason for that. I have been focusing on other things though. One of the things that I've been working on is now going live. I've redesigned my web......
  • 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 Find Inexpensive Web Hosting There are many reasons that you might decided you would like to have web hosting. If you feel that you want to have a web site, the first thing that you need to do is find yourself some web hosting. There are many ways that you can find this without......
  • Why We Have To Switch To Cloud Web Host: Why we must switch to Cloud Web host: Cloud hosting as explained in Wikipedia is a service that does not need knowledge among the consumers, we might not really know it, but we are actually enjoying the benefits of cloud hosting as Google searches are running within a cloud of......
  • Fishing Report: March 12, 2010 Sturgeon, Black Bass, Crab and Halibut Frank's Tract had been seeing the bass bite improving, but lately with the weather all over the place there's just no consistency in the way the fish are moving and biting. It's anybody guess where they'll bite or whether they'll bite until the weather......
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