title: RewriteRule is working opposite or not working?
body: <p>My default url is <a href="http://www.example.com/?page=20&amp;id=2" rel="nofollow noreferrer">http://www.example.com/?page=20&amp;id=2</a> and i want to show it as <a href="http://www.example.com/page/20/id/2/" rel="nofollow noreferrer">http://www.example.com/page/20/id/2/</a> with .htaccess</p>
  
  <p>I use the following codes;</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  Options +FollowSymLinks +Indexes -MultiViews
  RewriteEngine on
  RewriteBase /
  DirectoryIndex index.php
  
  RewriteRule page/(.*)/id/(.*)/?$ ?page=$1&amp;id=$2 [R=301,NE,NC,L]
  RewriteRule page/(.*)/?$ ?page=$1 [R=301,NE,NC,L]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /
  
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>If i remove [R=301,NE,NC,L] at the end of the codes, /page/20/id/2/ is working if i go directly but when i write as ?page=20&amp;id=2, url is not changed on browser.</p>
  
  <p>If i use as the above it redirect from /page/20/id/2/ to ?page=20&amp;id=2 which is the opposite of what i try to do. </p>
  
  <p>i will appreciate if anyone can help me.</p>
  
  <p>Thanks.</p>