RewriteRule ^$ /community/index.php [R,L]
Subject line says it all, really ;-) ...
I've had some experimental stuff (with Joomla) on the "Transwilts Community Rail Partnership" site for a couple of weeks ... but at yesterdays very successful meeting of the working group, we decided to hide that and take over the URL as our own communications centre, with a small public facing element.
So - I have installed a "Simple Machines Forum" as a simple way of providing logins, and a posting capability under which any (registered) member of the group can put up material that can be either public or just "working discussion" within the group.
Without wishing to loose my original work, and yet not wanting a complex URL for the working group, I have used the mod_rewrite at the top. What does it mean?
"Any request for a completely empty URL on the server is to be redirected to /community/index.php; this is to be done by asking the browser to redirect (that's the "R" flag) and if this mod_rewrite directive is followed, it's the last rewrite (that's the "L" flag), so that the rewrite engine doesn't run on and attempt, additionally, to apply the Joomla rewrites.
- if you visit http://www.twcrp.org.uk/
you'll be redirected visibly to http://www.twcrp.org.uk/community/index.php
- if you visit http://www.twcrp.org.uk/index.php
you'll have access to the Joomla experiments.
We cover the Apache web server (of which mod_rewrite is an element) on our Linux Web Server
and Deploying LAMP
courses. For programmers, we cover the uses of mod_rewrite on courses such as the PHP technology Workshop
and Intermdiate PHP for leisure / hobby users
(written 2010-04-17, updated 2010-04-18)
Associated topics are indexed underA607 - Web Application Deployment - Apache httpd mod_rewrite 
Forwarding a whole domain, except for a few directories - Apache http server - (2012-09-17) 
Adding a passcode to a directory - (2012-06-05) 
Telling which ServerAlias your visitor used - useful during merging domains - (2012-01-04) 
Simplest ever proxy configuration? - (2011-06-28) 
Finding and diverting image requests from rogue domains - (2011-03-08) 
How to set up short and meaningfull alternative URLs - (2010-10-02) 
Redirecting a page - silent, temporary or permanent? - (2010-08-03) 
Dynamically watching your web site via a PHP wrapper - (2010-05-21) 
Carrying a long URL around - looking for memorable shorts - (2010-05-17) 
Bookkeeping - (2009-12-29) 
If you have a spelling mistake in your URL / page name - (2009-03-21) 
mod_rewrite for newcomers - (2008-12-20) 
Pointing all the web pages in a directory at a database - (2008-08-30) 
More HowTo diagrams - MySQL, Tomcat and Java - (2008-08-24) 
Apache httpd, MySQL, PHP - installation procedure - (2008-08-01) 
What to do if the Home Page is missing - (2008-05-08) 
Using a MySQL database to control mod_rewrite via PHP - (2007-10-06) 
Choosing between mod_proxy and mod_rewrite - (2007-10-02) 
Simple but effective use of mod_rewrite (Apache httpd) - (2007-05-27) 
Passing GET parameters through Apache mod_rewrite - (2006-12-27) 
Apache httpd and Apache Tomcat together tips - (2006-12-24) 
Clustering, load balancing, mod_rewrite and mod_proxy - (2006-11-21) 
Using different URLs to navigate around a single script - (2006-06-11) 
Apache httpd to Tomcat - jk v proxy - (2006-03-03)
Some other Articles
Asking about JesusTraining Courses - time of changeBird Watching on the Melksham AvonUploading a document or image to its own URL via a browserRedirecting a home page using mod_rewriteMaking a Lua program run more than 10 times fasterEvery cloud has a silver liningHow do our tactics help us meet the strategy, for the greater good?Escapee Grandparents welcome - Henfield and MelkshamReturning multiple values from a function - Lua