在服务器链接上无法正常工作

时间:2012-08-08 06:42:45

标签: php linux

我的项目中有一个搜索链接,通过点击用户将重定向到另一个页面并根据获取值,数据将显示。我的localhost中一切正常。但是当我将文件放入服务器时说找不到页面。我不知道发生了什么。

我的loclhost中的链接: -

http://localhost/sampleproject?pickuplocation=Adelaide&returnlocation=Melbourne&vehicle=Campervan (2 berth)

在url中显示如下: -

http://localhost/sampleproject?pickuplocation=Adelaide&returnlocation=Melbourne&vehicle=Campervan+%282+berth%29

它的工作正常。

在服务器链接上是: -

http://www.example.com/?pickuplocation=Adelaide&returnlocation=Melbourne&vehicle=Campervan (2 berth)

在url中它的节目如此(服务器): -

http://www.example.com/?pickuplocation=Adelaide&returnlocation=Melbourne&vehicle=Campervan+%282+berth%29

服务器上的此链接引发错误PAGE NOT FOUND。 我不知道发生了什么。请事先帮助我,谢谢。

1 个答案:

答案 0 :(得分:1)

我很确定您的.htaccess文件会出现问题,请尝试移动它。