We have some trouble with getting a redirect within a .htaccess working as we like. The issue is that we have 1 webroot for multiple websites. Now we want to setup a redirect rule for domain1 only.
Redirect 301 http://www.DOMAIN1.nl/aanbiedingen/2289/ http://www.DOMAIN1.nl/nederland/gelderland/
when calling http://www.DOMAIN1.nl/aanbiedingen/2289/ in the browser it ignore the rule.
changing the htaccess rule to:
Redirect 301 /aanbiedingen/2289/ http://www.DOMAIN1.nl/nederland/gelderland/
will trigger the redirect, but will trigger the rule also for DOMAIN2 and DOMAIN3.
Hopefully you can help me the let the redirect work as should.
This is done by checking that
HTTP_HOSTmatches your domain before proceeding with the redirect.