title: .htaccess rewrite example.com/store/page.html to domain.com/page.html
body: <p>Just migrated a website to a different platform. </p>
  
  <p>Old site had urls like, </p>
  
  <p><a href="https://www.example.com/store/product.html" rel="nofollow noreferrer">https://www.example.com/store/product.html</a></p>
  
  <p><a href="https://www.example.com/store/product2.html" rel="nofollow noreferrer">https://www.example.com/store/product2.html</a></p>
  
  <p><a href="https://www.example.com/store/product3.html" rel="nofollow noreferrer">https://www.example.com/store/product3.html</a></p>
  
  <p>New site has urls like, </p>
  
  <p><a href="https://www.example.com/product.html" rel="nofollow noreferrer">https://www.example.com/product.html</a></p>
  
  <p><a href="https://www.example.com/product2.html" rel="nofollow noreferrer">https://www.example.com/product2.html</a></p>
  
  <p><a href="https://www.example.com/product3.html" rel="nofollow noreferrer">https://www.example.com/product3.html</a></p>
  
  <p>How can I 301 redirect the old urls to the new layout format of the new site using htaccess?</p>