Apache Url 读取不正确,重写有问题?
最近我将我的网站迁移到另一台使用 ISPCP 的服务器。但是,我遇到了一些麻烦,在 URL 中传递的变量没有被读取。
例子: 网址: http://www.site.com/index.php?page=show.php&id=4030
应该调用“show.php”(show.php 使选择一些表并显示结果,它在旧服务器中工作),但现在这个网址只调用“index.php”而不解释参数。
这是一些重写问题吗?
Apache 日志没有显示任何错误,它返回代码 200...出了什么问题?
Recently I migrated my websites to another server that are using ISPCP. But, I am getting some trouble, the variables that are passing in the URL aren't being read.
Example:
the URL:
http://www.site.com/index.php?page=show.php&id=4030
should call "show.php" (show.php make a select in some table and show the result, it was working in the old server), but now this url just call "index.php" without interpret the parameters.
Is it some rewrite problem?
Apache log doenst show any error, it returns code 200... What is wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
来自评论:
无论如何,这是包含文件的糟糕方法。完全没有安全感。
From the comments:
Anyway, this is a bad approach to including files. Completely insecure.
问题出在
我刚刚更改的
index.php中:)
我只是
不知道为什么在旧服务器中它正在工作......
The problem was in index.php
I just changed:
)
to
I just dont know why in the old server it was working...