title: redirect exact url to another url
body: <p>There are a bazillion examples online of doing redirects via apache's htaccess, but I can't find any example of redirecting a full URL match to another full URL.</p>
  
  <p>For instance, I have an existing website at </p>
  
  <pre><code>https://example.com
  </code></pre>
  
  <p>How do I redirect some specific URLs for that domain to a different one:</p>
  
  <pre><code>https://example.com/login     --&gt;  https://my.example.com/login
  https://example.com/register  --&gt;  https://my.example.com/register
  </code></pre>
  
  <p>For every other every other path on example.com I need to remain untouched so my site still works fine (i.e. <code>/blog</code> shouldn't redirect somewhere else).</p>