I'm trying to redirect all attempts to access a domain name, to the index.html file at the root of the same domain. When I do that, of course it redirects again, and again, and again, in a loop.
What I need to do is somehow exclude index.html from the redirect, so that once a user is on this page it doesn't try to redirect them again.
Here's what I've got now, which loops.
RewriteEngine on
RewriteRule .? http://www.mydomain.com/index.html [R=301,L]
I've searched around and tried a lot of things I've found around the web, some from this site, different RewriteCond's and such, and haven't succeeded yet. I'm sure I'm just having trouble with the syntax. Can someone lend a hand?
Thanks!
Jerry Hoffmann
DIYAutoTune.com