如何发送值方法GET与url mod重写


How to send value method GET with url mod rewrite?

使用mod重写时,如何发送带有url的值方法GET?

正常情况下

<form name="f1" method="get" action="aaa.php">
    <input type="text" name="value_1" value="ddd"/>
    <input type="text" name="value_2" value="888"/>
    <input type="submit" name="submit" value="send"/>
</form>

在我按下提交按钮后,我将被重定向到

www.example.com/aaa.php?value_1=ddd&value_2=888

但现在我想这样做,使用mod重写

<form name="f1" method="get" action="aaa">
    <input type="text" name="value_1" value="ddd"/>
    <input type="text" name="value_2" value="888"/>
    <input type="submit" name="submit" value="send"/>
</form>

按下提交按钮后,我想重定向到

www.example.com/aaa/ddd/888

我该怎么做?

EDIT : I created a .htaccess file with success success, and it works good.
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^yourwebsite.com$ 
RewriteRule ^(.*) http://www.yourwebsite.com/$1  [QSA,L,R=301]
RewriteRule ^/([a-z0-9-+]*)/([a-z0-9-+]*)/([0-9]{1,3})$ /$1.php?value_1=$2&value_2=$3 [L]

Regex取决于要传输的数据类型(整数、字符串…)。