开发者

How do I get next parameter in my .htaccess

Current URL

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

.htaccess

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

Next URL

http://domain.com/page/2/?by=1

How to get the by=1?

Because when I print_r($_GET) It's only display Array ( [p] => 2 )

What should I write in my .htacces to get the 开发者_StackOverflow中文版[by] => 1


Change the end of your line from [L] to [QSA,L] to preserve the query string.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜