title: htaccess like for like domain redirect
body: <p>I am using this rewrite to redirect my other domains to my main domain name, and keep the path intact.</p>
  
  <pre><code>Options +FollowSymLinks
  RewriteEngine on
  RewriteRule (.*) https://www.example.com/$1 [R=301,L]
  </code></pre>
  
  <p>which works great, but can I also keep the subdomain intact too?</p>
  
  <p>for example, if the URL visited is <code>sub1.domain2.com/path</code> can it redirect to <code>sub1.example.com/path</code></p>