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