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 page for this site showed a page full of links to admin logins/stat monitors, google utilities, etc. etc. (At least I’m not dumb enough to have put in password information.) Anyway…. I thought, how should I protect myself from doing that again? .htaccess is the answer….


Apache has a number of configuration options and many can be specified or over-ridden from your .htaccess file in the folder you want to affect. In this case, here’s what I added….

DirectoryIndex index.php index.html

(Because I ALWAYS want the index.php to take priority over the index.html)….

Now, if only I can make that USB hand that slaps you everytime you do something stupid I’ll be all set. (Seriously, 5v USB power might be enough to use one of those “wavy” hands you used to see in the back of car windows give a spasmic swat towards the hand at the mouse button…. maybe use some sort of motion sensor? or tie it in with the message bus to trigger…. oh nevermind…)

Related Posts

Blog Traffic Exchange Related Posts
  • More details on php exploit from last week Ok. I have a bit of time that I can sit down and get a little more detailed on what specifically happened late last week that shut the site down for a couple days. At one point, I had updated the ezcontents script for the main site (averyjparker.com), but I......
  • Search Engines Submission This is what hopefully will be the begining of a series of threads on webhosting, web marketing, etc. The first topic up is search engines submission. (This may take several articles...) It's important to get your web site up and mostly fleshed out before submitting to search engines. Why? Although......
  • The Google Problem, or why I'm starting to use MSN and Yahoo more. This weekend has been a bit of an introspective for me on why google is still the primary search engine I use. I know, I've been a big "fan(?)" of google for quite some time, I've obviously incorporated many of their products into my pages and used Google for 99%......
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......
  • ECommerce Internet Site Hosting - Defining Your Requirements The blueprint project reviewWhen you are setting up a web based business selling items or services from your web site you may require eCommerce website hosting. An on-line enterprise has some added requirements but the usual criteria for choosing a hosting service are still relevant, in fact they're of greater......
  • VPS Hosting For On The Internet Community Forums I am positive that if you are visiting this page, you will be interested in Hostgator. Presently you will locate a gamut of global communities on numerous Net discussion boards as very well as message boards, sharing details and discussing on many subjects on the web every single single minute......
PDF24    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