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
  • 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%......
  • Sunbeltblog has more info on the identity theft keylogger and will offer removal tool There another two fascinating posts in the saga of the massive identity theft that was reported in the Sunbelt blog. For starters they detail the beast here. It sounds truly devious, MAY still be related to coolwebsearch after all. It turns off Windows firewall and runs through Internet Explorer (thereby......
  • Page banned from Google? So for the past month and a half I've been puzzling over northcarolinagenealogy.net and it's mysterious sudden disappearance from google. I mean... let's see, there are a couple hundred posts there. It uses the same template as this and the South Carolina genealogy site do. Nothing really different than the......
Blog Traffic Exchange Related Websites
  • What is A Site Map? How Do I Direct Spiders Around My Site? hanging complete spider webs That's a good question as people new to site building aren't aware that there are web spiders (bots), much less 3 types of site maps. Bot's are essentially discovery programs used by the search engines. The bot's roam......
  • Astonishing Tricks Of A Small Recognised Targeted Visitors Generation Grasp Traffic Bandits ReviewSo, you have create your foremost site while in the hope which you could appeal to far more visitors in your home business. You have worked some months setting up, creating, developing and having to pay to get a wonderful world-wide-web host. All that stays to become accomplished......
  • 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......
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