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…)
Popularity: 2% [?]
Related Posts - 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......
- 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......
- Web Site Promotion Through Directories When I first started building web sites I seemed to have very good "google luck". I designed pages, published and then submitted to 4-5 search engines and a couple directories and the traffic started coming in. The search engines were altavista, google, hotbot and a couple others and the directories......
Related Websites - A Web Hosting Business Can Make The Difference Between Achievement And Failure A world wide web hosting business needs to be capable to provide numerous innovative characteristics such as high-end hosting to leverage the very best in technological developments and ought to be able to provide diverse hosting methods. It should be possible for customers to take benefit of their own diverse......
- Choosing Out A Web Hosting Support That Delivers Selecting the best internet host can make or break your web site. That is because the net host need to be regarded as to be the foundation of the web site. In order to possess a longer term web site and make sure you present a good knowledge for your......
- Find out What it Takes to Identify a Good Web Hosting Service Selecting the correct web host can either make your website wonderful or horrible.This is because the hosting service that backs up your website acts as its backbone. In order to have long term stability and to ensure you give your site visitors a good experience on your website, you will......
Similar Posts
- Web translation
- Protecting access to web directories with htaccess
- Using .htaccess to ALLOW directory browsing
- Creating a redirect page
- Whoops!