1
我有URL像隱藏一些URL參數,但不是所有(與的.htaccess)
test/users?p=show
,我通過使用規則使它成爲像
test/users/show
:
RewriteRule ^users/(\w+)$ users.php?p=$1 [L]
參數p可能不同,它包含單詞作爲參數,但我想在某些情況下添加一些額外的參數。當使用
test/users?p=show&wg=1
它的工作原理IM,但我想用
test/users/show&wg=1 or test/users/show?wg=1
工作它是如何實現這種效果?
是否可以添加參數與&已經作出這樣的規則(它可能是1到4個額外的參數)?
Thx,simple and works:d – norbidrak