[...] die beste Möglichkeit ist in der Serverkonfiguration, alternativ per .htaccess (jeweils mit mod_rewrite) [...]
Die mod_rewrite-Kanone sollte man nicht verwenden, wenn man einen Spatzen mit Redirect erledigen kann.
"The Redirect directive maps an old URL into a new one. The new URL is returned to the client which attempts to fetch it again with the new address. URL-path a (%-decoded) path; any requests for documents beginning with this path will be returned a redirect error to a new (%-encoded) URL beginning with URL."
Example:
Redirect /service http://foo2.bar.com/service
Note
Redirect directives take precedence over Alias and ScriptAlias directives, irrespective of their ordering in the configuration file. Also, URL-path must be a fully qualified URL, not a relative path, even when used with .htaccess files or inside of <Directory> sections.
Was beutet "fully qualified url"?
Offenbar mein es den Pfad ab document-root.
Es wird kein beispiel gegeben, wo ich protokoll:authority mit anführe.
Deshalb die Frage: kann ich wirklich mit Redirect bzw. RedirectMatch verschiedene Domains angeben?
Meine Vermutung ist: Nein
"URL-path a (%-decoded) path;"
mfg Beat