Php 如何使用url mod rewrite发送值方法GET?

Php 如何使用url mod rewrite发送值方法GET?,php,forms,apache,mod-rewrite,url-rewriting,Php,Forms,Apache,Mod Rewrite,Url Rewriting,当使用mod rewrite时,如何使用url发送value方法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"

当使用mod rewrite时,如何使用url发送value方法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/ddd/888

我该怎么做

EDIT : I created a .htaccess file with success success, and it works good.

正则表达式取决于要传输的数据类型(整数、字符串…)。

您必须通过.htaccess filesTry POST而不是GET完成。您应该在htaccess文件中手动编写规则,mod_rewrite没有自动将GET表单提交转换为友好链接。您应该用PHP和htaccess编写所有内容
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]