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.........
  • 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......
  • Saving you from yourself or specifying which index file to use with apache As I said, I mistakenly uploaded a page of links that I use for the main administration across many sites to this domain. Unfortunately, the server preferred using the index.html to the index.php that serves up the USUAL home page. So, for about an hour after my slipup.... the main......
Blog Traffic Exchange Related Websites
  • Web Hosting Businesses And How To Drum Up Some Publicity For Them If you are serious about making a living from your web hosting business then you are going to need to attract plenty of customers. You are going to have to do as much promotion as you possibly can in order to get more customers. You can't just do this the......
  • 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.......
  • UK Web Hosting: Discount Code UK Web hosting is something I get asked about a lot. Small business owners often ask me which hosting company I use and if they are based in the UK. My answer is… yes they are based in the UK and they are called Birch Hosting. If you want......
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