开发者

mod_rewrite - PHP: $_GET not complete

I have the followi开发者_如何学Pythonng mod_rewrite:

Options +FollowSymLinks
RewriteEngine On

RewriteRule ^register index.php?page=register

The url looks like this: http://domain.com/register?param=foo&paramtwo=bar If I now print $_GET in PHP I get this: Array ( [page] => register ) but the other params aren't set. Must I change someting at the mod_rewrite to get them?


Set the QSA flag to have the original query appended to the new one:

RewriteRule ^register index.php?page=register [QSA]
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜