So I can do a simple redirect on an Apache virtual host like this:
<VirtualHost *:443>
ServerName www.old-domain.com
Redirect / www.new-domain.com/new-resource
</VirtualHost>
But of course, if I go to www.old-domain.com/old-resource
it redirects to www.new-domain.com/new-resourceold-resource
. I'd like to just drop everything after the old domain name, regardless of the directory or file, so www.old-domain.com/whatever/doesntmatter/foo.html
still just redirects to www.new-domain.com/new-resource
.
How do I accomplish that?