title: How to trigger 'Rewrite Rule' by a URL with get parameters sent by form
body: <p>I need help with using <code>RewriteCond</code> properly in my <code>.htaccess</code>.
  I have a simple php file which accepts 2 get parameters and returns a JSON object. Well, I wrote a simple Rewrite Rule to make my url pretty and understandable.
  Although after adding a form, obviously the Rewrite Rule won't get triggered because it will send a standard 'raw' URL.</p>
  <p>My normal URL looks like this:</p>
  <pre><code>www.example.com/?ost=1&amp;song=2
  </code></pre>
  <p>After my Rewrite Rule:</p>
  <pre><code>www.example.com/ost/1/song/2
  </code></pre>
  <p>But the form sends the url like this: <code>www.ost.com/?ost=1&amp;song=2</code></p>
  <p>After searching a bit, I found out that <code>RewriteCond</code> could help but I am not familiar with it.</p>
  <p><strong>Edit:</strong>
  I have been asked for my Rule, so here it is:</p>
  <pre><code>RewriteRule ^(ost)/([^/.]+)/?(song)?/?([^/.])?$ index.php?$1=$2&amp;$3=$4
  </code></pre>
  <p>I forgot to mention that the song parameter is optional but this doesn't matter.</p>