I have domain.de
and domain.com
. In the past I have used both domains, but now I want to use only the domain.de and domain.com should redirect to domain.de/en
. But there are 2 links which need to be domain.de/api/xx1
+ domain.de/api/xx2
(so without the /en). I tried the following:
<If "%{HTTP_HOST} = 'domain.com'">
Redirect /api/xx1 http://domain.de/api/xx1
Redirect /api/xx2 http://domain.de/api/xx2
Redirect / http://www.domain.de/en
</If>
But it only redirects everything to .de/en
and ignores the two links, how would I change it so that it works?