Apache Url不能正确读取,重写问题


Apache Url are not being reading correctly, rewrite problem?

最近我把我的网站迁移到另一个使用ISPCP的服务器上。但是,我遇到了一些麻烦,在URL中传递的变量没有被读取。

的例子:网址: http://www.site.com/index.php?page=show.php& id = 4030

应该调用"show.php" (show.php在一些表中进行选择并显示结果,它在旧服务器中工作),但现在这个url只是调用"index.php"而不解释参数。

是重写的问题吗?

Apache日志没有显示任何错误,它返回代码200…怎么了?

从注释中:

require_once($_GET['page'])
无论如何,这是一个包含文件的坏方法。完全没有安全感。

问题出在index.php

I just changed:

if ($HTTP_GET_VARS['page'])
   require_once("$HTTP_GET_VARS[page]");

)

if (!$_GET['page'])
   require_once($_GET['page']);