Forum Moderators: phranque
I've tried
redirect 301 / [exampleafg.com...]
and
redirect 301 /index.htm [exampleafg.com...]
Neither of those work so, what am missing here? How do I construct this?
"Redirect 301 /" will redirect *anything* that starts with a slash, so it will also redirect the redirected request -- thus a loop.
The usual solution would be to use mod_rewrite to do the redirect conditionally, thus avoiding the loop. You also might be able to use RedirectMatch. They key is to avoid redirecting the redirected request, so the URLs must be sufficiently unique (as defined by the pattern-matching capabilities of the directives you're using) to avoid recursion.
Jim