title: How do i rewrite url (deleting 2folders and 1 get parameter) without redirection?
body: <p>I am trying to redirect pages created dynamically.</p>
  
  <p>My mvc model force me to have this kind of url:<br>
  localhost/page/page_id?id=1<br>
  localhost: site url<br>
  page : controller<br>
  page_id : action<br>
  id=1 : parameters
  <br><br>
  I'd like to have this kind of url:<br>
  localhost/1<br>
  In other words, delete everything except the value of the "id" parameter.
  How can i do that?<br><br></p>
  
  <p>I already tried some codes, but it redirects me every time.</p>
  
  <p>My current htaccess (root directory):</p>
  
  <pre><code>Options +FollowSymLinks
  RewriteEngine On
  RewriteRule ^page/(.*)$ /$1 [L,R=301]
  RewriteCond %{SCRIPT_FILENAME} !-d
  RewriteCond %{SCRIPT_FILENAME} !-f
  RewriteRule ^.*$ /index.php [L]
  </code></pre>
  
  <p>I land there when i type <a href="http://localhost/page/page_id?id=1" rel="nofollow">http://localhost/page/page_id?id=1</a> :<br>
  <a href="http://localhost/page_id/id=1" rel="nofollow">http://localhost/page_id/id=1</a>
  With error: "Controller doesn't exist", cause of url being redirected.</p>
  
  <p>What did i missed?</p>
  
  <p>Thanks in advance !</p>