title: Change GET-URL to canonical (mod_rewrite)
body: <p>For my search engine, I have the page ...</p>
  
  <p>/index.php?q=TERM</p>
  
  <p>... which displays the search results.</p>
  
  <p>Using mod_rewrite, I made it accessible via:</p>
  
  <p>/q/TERM</p>
  
  <p>The rule I used in the .htaccess was something like this:</p>
  
  <pre><code>RewriteEngine on 
  RewriteRule ^q/(.+)$ index.php?q=$1
  </code></pre>
  
  <p>This works well. But when I enter a term into my HTML form and click the submit button, I'm still redirected to ...</p>
  
  <p>/index.php?q=TERM</p>
  
  <p>How can I make my GET-form directly calling the new and short URL? Its code is:</p>
  
  <pre><code>&lt;form action="/index.php" method="get" accept-charset="utf-8"&gt;
  ...
  &lt;/form&gt;
  </code></pre>