title: Form action GET + Mod Rewrite
body: <p>I'm sorry if I'm repeating a question, but I can't seem to solve this looking at other answers :(</p>
  
  <p>I have a FORM with GET action:</p>
  
  <pre><code>&lt;form action="tag" role="form" method="get"&gt;
  </code></pre>
  
  <p>Which contains a search input named "q"</p>
  
  <p>What I want is that when I submit the form, the URL displayed in the navigation bar is:</p>
  
  <pre><code>http://localhost/web/tag/dress
  </code></pre>
  
  <p>Instead, of</p>
  
  <pre><code>http://localhost/web/tag?q=dress
  </code></pre>
  
  <p>In my .htaccess I have</p>
  
  <pre><code>RewriteRule ^tag/([0-9a-z]+)/?$ index.php?tag=$1 [L]
  </code></pre>
  
  <p>Which works fine when I access directly to:</p>
  
  <pre><code>http://localhost/web/tag/dress
  </code></pre>
  
  <p>All I want is the form to take me to this clean URL instead of using the ?q= parameter in the navigation bar.</p>
  
  <p>Any suggestions?</p>
  
  <p><strong>A simplified version of my .htaccess is:</strong></p>
  
  <pre><code>ErrorDocument 404 http://localhost/web/#404
  RewriteEngine on
  
  RewriteRule ^index.html index.php [L]
  
  ###TAG
  RewriteRule ^tag/([0-9a-z]+)/?$ index.php?seccion=home&amp;tag=$1[L]
  
  ###USER PROFILE
  RewriteRule ^([0-9a-z]+)/?$ index.php?seccion=profile&amp;user=$1 [L]
  </code></pre>