slanto, unfortunately, i don't think your solution is very helpful. were i to put that in my index.html page, it would constantly redirect to itself, wouldn't it?
Additionally, what if someone were to type in
http://mydomain.com/foo
that page would not be armed with redirect.
I think apache redirect is the way to go.