Set HTTP condition for redirect rule
- by Török Gábor
A have a redirect rule in my .htaccess that forwards agent from A.html to B.html using the following pattern:
Redirect 301 /A.html http://mysite.com/B.html
Since the Redirect directive requires to set the target host, is it possible to let this rule prevail only on a specific host? I have both a test and deploy domain, and only want it on the deploy domain. I can set HTTP conditions for Rewrite rules, but how can I for HTTP Redirects?