(1) http://example.com/index.php?foo=bar
(2) http://example.com/?bar のように、
とフォーム入力側で実現することは可能でしょうか?

 <form method="get" action="./index.php">
  <input type="text" name="foo" value="" />
 <form>
 
GETでinputに値を渡して、
URLを(2)のように表示させたいのです。
.htaccessだとうまく実現できずに困っています。