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
.htaccess错误文档_.htaccess_Wampserver_Errordocument - Fatal编程技术网

.htaccess错误文档

.htaccess错误文档,.htaccess,wampserver,errordocument,.htaccess,Wampserver,Errordocument,我有点小问题 我想将我自己的自定义错误页面添加到我的系统中。 以前我总是在这方面取得成功。 但现在我不能。我不明白为什么 这是我在我的一个网站上使用的代码 errordocument 404 http://www.clientdomain.com/404/20/ 但我认为下面的代码实际上是相同的 而且它不起作用 ########======================================================= ######## ERROR DOCUMENTS ###

我有点小问题

我想将我自己的自定义错误页面添加到我的系统中。 以前我总是在这方面取得成功。 但现在我不能。我不明白为什么

这是我在我的一个网站上使用的代码

errordocument 404 http://www.clientdomain.com/404/20/
但我认为下面的代码实际上是相同的 而且它不起作用

########=======================================================
######## ERROR DOCUMENTS
########=======================================================
errordocument 403   ?pagenotfound=403
errordocument 404   ?pagenotfound=404
errordocument 500   ?pagenotfound=500
########=======================================================
它所做的只是显示:?pagenotfound=404

当找不到页面时

添加斜杠时:

########=======================================================
######## ERROR DOCUMENTS
########=======================================================
errordocument 403   /?pagenotfound=403
errordocument 404   /?pagenotfound=404
errordocument 500   /?pagenotfound=500
########=======================================================
当找不到页面时,它将提供wamp服务器主页


有人能看到我做错了什么吗???

出错时要显示的文件的整个路径是什么?errordocument 404/?pagenotfound有什么问题=404@Justin勒曼:那么现在是本地主机吗?