Ok, so I'm in need a simple redirect:
Redirect 301 / http://www.new.com/
Similar to that, except I want it to catch anything, such as:
www.old.com/blah/blah/?xyz=123&aaaaabbbb=erewr3ttt#ewtjhirhjerh
and send the user to:
www.new.com
Should be easy right? Finding out how to do this is not so easy. Using the above rule we're still getting 404's for things that aren't there rather than the Redirect rule just getting everything.
Alternatively, you can use the
RedirectMatch
directive instead of using mod_rewrite:Note the
^
can be interchanged with.*
, both regular expressions with match everything.This should work:-
The
(.*)
will match everything, and redirect to just http://www.new.com/.Edit: This was for Apache, I've retagged the question as being for Zeus.