I would like to redirect all urls from the host a.myhost.com to b.myhost.com. I've explored all the options - Apache redirect, rewriterule directives. I want the redirects to happen to the same target url - which is http://b.myhost.com - regardless of what the original url was (e.g. a.myhost.com/a.html). All the examples that claim to be able to do this, actually don't, in practice (atleast on my Apache installation). The a.html is carried forward to the redirected host - which is not what is desired.
Any ideas?
See http://httpd.apache.org/docs/current/mod/mod_alias.html#redirectmatch for details.
Does that work?
I belive something like this would do the job