2
看來我不能在使用mod重寫時使用正則表達式組,例如,RewriteRule使用10美元,11美元,12美元等等
results/(.*?)(/(.*?))(/(.*?))(/(.*?))(/(.*?))(/(.*?))(/(.*?))(/(.*?))(/(.*?))(/(.*?))
那會做這樣的事情:
results.php?a=$1&b=$3&c=$5&d=$7&e=$9&f=$11&g=$13&h=$15&i=$17&j=$19
對於那些在它有一個1
數字將追加$1
組和一個數字,例如
$1
是a+typical+get+query
和$19
是頁碼,它將返回a+typical+get+query9
正如你所看到的數量在年底追加。
print_r($_GET):
Array
(
[a] => a typical get query
[b] => some other field for the query
[c] => 1
[d] => 1
[e] => 1
[f] => a typical get query1
[g] => a typical get query3
[h] => a typical get query5
[i] => a typical get query7
[j] => a typical get query9
)
爲什麼這樣做呢?