title: Rewrite Condition for Query string URL in .htaccess file
body: <p>I don't have a good knowledge in .htaccess file, 
  Anyhow somewhere I found the code as shown below :</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine on
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.php -f
  RewriteRule ^(.*)$ $1.php
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I am posting the form values to pagedata.php from index.php page as shown below :</p>
  
  <pre><code>&lt;!-- index.php page --&gt;
  &lt;form name="testform" id="testform" method="post" action="pagedata"&gt;
  &lt;input type="text" name="firstname"&gt;
  &lt;input type="text" name="age"&gt;
  &lt;input type="text" name="city"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Then data is dispalying fine ... But now I need to change the post method to get method.</p>
  
  <p>If I submit the form with get method, then URL is as follows,
  <a href="http://example.com/pagedata.php?firstname=test&amp;age=26&amp;city=somecity" rel="nofollow">http://example.com/pagedata.php?firstname=test&amp;age=26&amp;city=somecity</a></p>
  
  <p>But I need to convert the above URL as follows,
  <a href="http://example.com/pagedata/test/26/somecity" rel="nofollow">http://example.com/pagedata/test/26/somecity</a></p>
  
  <p>How to do this..? Please suggest.</p>