title: Redirect all pages to new domain
body: <p>I want to redirect all the pages of my website to a new domain with a redirect. I've managed to get it working on domain level but not on the subpages.</p>
  
  <p>So olddomain.com redirects to newdomain.com but olddomain.com/contact doesn't redirect to newdomain.com. It still shows the old domain.</p>
  
  <p>I've used multiple rewrites rules but none of them seem to works. Any help is much appreciated.</p>
  
  <p>This is the code that I'm using right now in my .htaccess file</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  
  
  RewriteCond %{HTTP_HOST} ^racentegenkanker\.com$ [OR]
  RewriteCond %{HTTP_HOST} ^www\.racentegenkanker\.com$
  RewriteRule ^(.*)$ "http\:\/\/againstcancer\.nl\/$1" [R=301,L]
  </code></pre>