Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如果有get参数,php网站自动重定向404错误页面_Php_.htaccess - Fatal编程技术网

如果有get参数,php网站自动重定向404错误页面

如果有get参数,php网站自动重定向404错误页面,php,.htaccess,Php,.htaccess,在我的网站上,当我通过get方法传递任何数据时,它会重定向到404.html 比如说,, in正在重定向到错误代码404 但是 他正在工作 请提出建议,因为httaccess中没有问题 提前感谢。请求 http://classictajtours.com/enquiry-now.html?id=49 301正在重定向到 http://www.classictajtours.com/http://www.classictajtours.com/enquiry-now.html 在重定向循环中继

在我的网站上,当我通过get方法传递任何数据时,它会重定向到404.html

比如说,, in正在重定向到错误代码404

但是 他正在工作

请提出建议,因为httaccess中没有问题

提前感谢。

请求

http://classictajtours.com/enquiry-now.html?id=49
301正在重定向到

http://www.classictajtours.com/http://www.classictajtours.com/enquiry-now.html

在重定向循环中继续重定向回自身。我将查看您的HTTP服务器配置文件以查找错误。

我们无法猜测您的URL、htaccess和重定向方法。你能给我们一个代码片段吗?是不是HTML页面不允许在其中存储参数?或者您拼写“example”不正确?感谢peter的快速响应,我正在基于php的网站上工作。当我通过“get”方法传递数据时。文件自动重定向到找不到的页面。嗨,李,举个例子而已。抱歉拼错了。Html页面允许参数。此网站在本地系统中运行良好。请尝试以下url:和