I have the following problem.
I want to rewrite all requests from domain abc.de to example.com but the query in the browser should stay abc.de
Some examples:
- abc.de/test -> example.com/test
- abc.de/ab?query=string -> example.com/ab?query=string
I already tried the following configuration, but I'm getting 500 server errors.
RewriteEngine on
RewriteRule ^/(.*) http://example.com/$1 [P]
ProxyPassReverse / http://example.com/