title: .htaccess 301 redirect Homepage to subdomain
body: <p>I would like to redirect my home page to a subdomain in .htaccess. Ive tried several different ways I found online. None have worked.</p>
  <p><a href="https://example.com/index.com" rel="nofollow noreferrer">https://example.com/index.com</a> to <a href="https://sub.example.com/index.com" rel="nofollow noreferrer">https://sub.example.com/index.com</a></p>