title: GET parameter becomes the page name after rewrite
body: <p>I have an url that looks like:</p>
  
  <pre><code>/platforms.php?platform_id=xxx
  </code></pre>
  
  <p>where <code>xxx</code> is a number</p>
  
  <p>I'm rewriting the URL inside the php application. So, for example the above url would look like:</p>
  
  <pre><code>/xbox/ or /playstation/
  </code></pre>
  
  <p>Now in .htaccess I have:</p>
  
  <pre><code>RewriteRule ^([^/]+)/$ platforms.php?platform_id=$1 [L,QSA]
  </code></pre>
  
  <p>However when I go to a platform page the GET url becomes <code>/xbox/ or /playstation/</code> , instead of <code>xxx</code>.</p>
  
  <p>Any pointers would be appreciated.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>Hi, the link is not relevant to my question. I've tried to reformulate what I am after for in the example bellow with better details.</p>
  
  <p>Thanks for the answer and sorry for the bad explanation.</p>
  
  <p>Yep, when I said GET url I was referring to $_GET["platform_id"] .</p>
  
  <p>Basically I have an URL called </p>
  
  <p>www.example.com/platforms.php?platform_id=1</p>
  
  <p>In the above example $_GET['platform_id'] = 1.</p>
  
  <p>In the actual php aplication I have a function (let's call it make_link ), with which I make the above URL output like:</p>
  
  <p>www.example.com/xbox/ (since 1 is the id of the xbox platform)</p>
  
  <p>Now in httaccess I also need a rewrite rule that will make accessing the URL work.</p>
  
  <p>So I have :</p>
  
  <p>RewriteRule ^([^/]+)/$ platforms.php?platform_id=$1 [L,QSA] </p>
  
  <p>This does make the rewrite work in the terms that I can access</p>
  
  <p>www.example.com/xbox/</p>
  
  <p>However on the newly accessed page, if I get $_GET['platform_id'], the value for it is xbox/ .</p>
  
  <p>Thanks,</p>