Rewrite URL from my form using get request in htaccess
<p>I just want to rewite my url <code>example.org/search.php?by_what=date&amp;keywords=sample</code> to <code>example.org/search/date/sample</code>.</p>

<p>Here is my code : 
 in my <strong>search.php</strong></p>

<pre><code>&lt;form name="frmSearch" action="search.php" method="GET"&gt;

            &lt;div class="row searchbox-container"&gt;
                &lt;div class="twelve columns"&gt;
                    &lt;div class="row collapse"&gt;
                        &lt;div class="nine columns"&gt;
                            &lt;input type="hidden" name="by_what" value="manning_agency"&gt;
                            &lt;center&gt;
                                &lt;input type="text" placeholder="Type agency name here" name="keywords" id="keywords" size="40" class="small-txtbox-search-inner" value="&lt;? echo $keywords; ?&gt;" /&gt;
                            &lt;/center&gt;
                        &lt;/div&gt;

                        &lt;div class="three columns"&gt;  
                            &lt;input type="submit"  class="button expand postfix"  name="" id="cmdSubmit" value="Search" style="font-weight:normal !important; padding:7px !important; width:120px" /&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;

        &lt;/form&gt;
</code></pre>

<p>and here is my <strong>.htaccess</strong>:</p>

<pre><code>Options +FollowSymLinks 

RewriteEngine on
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^search/(.*)$ search.php?$1 [QSA,L]

RewriteCond %{THE_REQUEST} ^[a-zA-Z0-9]{3,9}\ /search\.php\?by_what=([^&amp;]+)&amp;keywords=([^&amp;]+)(.*)\ HTTP/

RewriteRule ^search\.php$ example.org/search/%2/q/%1? [R=301]
</code></pre>