title: redirect specific category pages to subdomain
body: <p>I have been trying this for a while but haven't found a solution yet.</p>
  
  <p>I moved to wordpress and my old site is in custom CMS. the old site now goes to archive.example.com while all the new posts will be created on <a href="http://example.com" rel="nofollow noreferrer">http://example.com</a></p>
  
  <p>I have created different categories for new site so that it doesn't conflict with categories from old site.</p>
  
  <p>I want all the request being made to old category pages to go to archive.exampmle.com</p>
  
  <p>For eg:</p>
  
  <pre><code>http://example.com/apple 
  </code></pre>
  
  <p>should go to </p>
  
  <pre><code>http://archive.example.com/apple
  </code></pre>
  
  <p>Also,
  all the URLs under apple category should go to the archive subdomain. For eg:</p>
  
  <pre><code>http://example.com/apple/1234 
  </code></pre>
  
  <p>should now go to </p>
  
  <p><a href="http://archive.example.com/apple/1234" rel="nofollow noreferrer">http://archive.example.com/apple/1234</a></p>
  
  <p>I tried this</p>
  
  <pre><code>RedirectMatch 301 /apple/ http://archive.example.com/apple/$1
  </code></pre>
  
  <p>but it doesen't work.</p>