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.

Popularity: 1% [?]

Free PDF    Send article as PDF   
Blog Traffic Exchange Related Posts
  • Quickbooks "An error has occurred in the script on this page" I ran into an install of Quickboos Pro 2005 that was having a peculiar problem. When any company file was opened I was seeing an Internet Explorer Script Error message (quickbooks uses Internet Explorer to parse the company page ( Usually C:\Program Files\Intuit\Quickbooks\Components\Pages\Comppage.qpg ) The error basically said "An error......
  • Google search engine crawling experiment Recently I've had an experiment with the way Google crawls a site. I had a client site that had not been spidered in spite of being submitted to Google a good while back. I looked at the site and saw nothing amiss. There was plenty of text on the page......
  • 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.........
Blog Traffic Exchange Related Websites
  • 10 Benefits of Hosting your Own Blog If you want to create an edge over many of the other bloggers on the web, then one of the best things that you can do is host your own blog. There are a number of benefits of hosting your own blog over having some other service host your blog.......
  • 4CheapWebHosting.com lists best Web Hosting plan for you Before creating a website, you need to consider two main things: 1. Domain Name 2. Web Hosting Getting a good domain name and an affordable hosting is the priority of any webmaster. Finding a good domain name registrar is easy. There are a couple of reputed domain registrars providing good......
  • Web Hosting Packages And How To Get More Value For Money From Them It is a real shame but a lot of us fail to get good value for money from our web hosting packages. And this is not something that we can blame on our web hosting providers because they have plenty of extra options available but we just don't make the......

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