mod_rewrite的 - PHP:$ _GET未完成 [英] mod_rewrite - PHP: $_GET not complete

查看:152
本文介绍了mod_rewrite的 - PHP:$ _GET未完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下mod_rewrite的:

I have the following mod_rewrite:

Options +FollowSymLinks
RewriteEngine On

RewriteRule ^register index.php?page=register

该网址如下: http://domain.com/register?param=foo&paramtwo=bar
如果我现在在PHP打印$ _GET我得到这个:阵列([页码] =>注册)但其他PARAMS未设置。我必须在mod_rewrite的改变成才,让他们?

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?

推荐答案

设置的 QSA 的标志有附加到新的原始查询:

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

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

这篇关于mod_rewrite的 - PHP:$ _GET未完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆