title: htaccess redirect to different domains if url contains word
body: <p>I have a website that I'm splitting into two. So I want to redirect all pages to one of two other domains depending on whether the url contains a particular keyword. So something like that below in .htaccess:</p>
  
  <pre><code>if ("keyword" is in the url) site A redirects to site B
  else site A redirects to site C
  </code></pre>