title: Redirect all to different domain except wp-admin and wp-json
body: <p>I want to redirect all pages to <a href="http://www.expample2.com" rel="nofollow noreferrer">http://www.expample2.com</a> except the wp-admin and wp-json.</p>
  
  <p>For example the user is able to login to <a href="http://www.example1.com/wp-admin" rel="nofollow noreferrer">http://www.example1.com/wp-admin</a> and the wp-json plugin still has to work which is in <a href="http://www.example1.com/wp-json/" rel="nofollow noreferrer">http://www.example1.com/wp-json/</a>...</p>
  
  <p>Also within the wp-admin the user can click to show a post for example. <a href="http://www.example1.com/post/title" rel="nofollow noreferrer">http://www.example1.com/post/title</a> but I want this to point to <a href="http://www.example2.com/book/title" rel="nofollow noreferrer">http://www.example2.com/book/title</a></p>
  
  <p>However in order for the json to work right this script has to work to I think:</p>
  
  <pre><code>&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;
  </code></pre>