如何获取.htaccess中的下一个参数

如何获取.htaccess中的下一个参数,.htaccess,mod-rewrite,.htaccess,Mod Rewrite,当前URL http://domain.com/page/2/ .htaccess RewriteRule ^page/([0-9]+)/$ /index.php?p=$1 [L] 下一个URL http://domain.com/page/2/?by=1 如何通过=1获取 因为当我print\u r($\u GET)时,它只显示Array([p]=>2) 我应该在.htacces中写些什么来获取[by]=>1将行尾从[L]更改为[QSA,L],以保留查询字符串。Opss。现在在没有空白的

当前URL

http://domain.com/page/2/
.htaccess

RewriteRule ^page/([0-9]+)/$ /index.php?p=$1 [L]
下一个URL

http://domain.com/page/2/?by=1
如何通过=1获取

因为当我
print\u r($\u GET)
时,它只显示
Array([p]=>2)


我应该在.htacces中写些什么来获取
[by]=>1

将行尾从
[L]
更改为
[QSA,L]
,以保留查询字符串。

Opss。现在在没有空白的情况下工作。谢谢你,迈克尔