title: .htaccess doesn't redirect properly from one website to another website
body: <p>I want to redirect temporarily from one URL to another URL using .htaccess</p>
  
  <blockquote>
    <p>Example :</p>
  </blockquote>
  
  <p>When browse from URL <code>www.example.com</code>, Then I want to redirect <code>www.another-example.com</code>. This is working good.</p>
  
  <p>But don't want to redirect anywhere if browse like as <code>www.example.com/other/path</code></p>
  
  <p>But it is always redirecting to <code>http://www.another-example.com</code> if i browse like <code>www.example.com/other/path</code> other path.</p>
  
  <p>Here is my <code>.htaccess</code> code</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine on
    RewriteRule    ^$   app/      [L]
    RewriteRule    (.*) app/$1    [L]
    Redirect 302 "/" "http://www.another-example.com"
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>How can I do it by modifying my <code>.htaccess</code> code?</p>