title: How to 301 redirect all pages to the same pages on new domain
body: <p>I'm moving my site from old-domain.com to new-domain.com with exactly the same pages, e.g., if old-domain.com has a page1.html (i.e., old-domain.com/page1.html) then the new domain has the same page, i.e., new-domain.com/page1.html</p>
  
  <p>I tried this in the .htaccess file:</p>
  
  <pre><code>RewriteEngine on
  RewriteRule (.*) http://new-domain.com/$1 [R=301,L] 
  </code></pre>
  
  <p>But only while old-domain.com will redirect to new-domain.com, old-domain.com/page1.html <strong>will not</strong> redirect to new-domain.com/page1.html</p>
  
  <p>Thanks!</p>