rewrite url when a form is submitted
问题 Question regarding redirection using htaccess. On a GET search form submit I get the following url: http://www.example.com/search/?criteria=foo&filter=all&date=all&submit=search&page=1 The above works fine. Then I have this rewrite rule in my htaccess: RewriteRule ^(.*)/(.*)/(.*)/(.*)/(.*)/$ search.php?criteria=$2&filter=$3&date=$4&submit=$1&page=$5 [L] The above also works fine. It allows me to use the following structure for my search results: http://www.example.com/search/foo/title/all/1/