Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.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
Html 404错误页面的问题_Html_.htaccess_Redirect_Http Status Code 404 - Fatal编程技术网

Html 404错误页面的问题

Html 404错误页面的问题,html,.htaccess,redirect,http-status-code-404,Html,.htaccess,Redirect,Http Status Code 404,我试图转到404错误页面: 以下是.htaccess文件: Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.MYSITE\.co.uk [NC] RewriteRule ^(.*)$ http://MYSITE.co.uk/$1 [R=301,L] #enable hiding cfm extension RewriteCond %{THE_REQUEST} \ /(.+/)?index(\.c

我试图转到404错误页面:

以下是.htaccess文件:

Options +FollowSymLinks


RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.MYSITE\.co.uk [NC]
RewriteRule ^(.*)$ http://MYSITE.co.uk/$1 [R=301,L]

#enable hiding cfm extension
RewriteCond %{THE_REQUEST} \ /(.+/)?index(\.cfm)?(\?.*)?\  [NC]
RewriteRule ^(.+/)?index(\.cfm)?$ /%1 [R=301,L]

#RewriteCond %{ENV:REDIRECT_STATUS} ^$
#RewriteRule ^(.+)\.cfm$ /$1 [R=301,L]

RewriteCond %{SCRIPT_FILENAME}.html -f
RewriteRule [^/]$ %{REQUEST_URI}.cfm [QSA,L]

RewriteCond %{SCRIPT_FILENAME}.cfm -f
RewriteRule [^/]$ %{REQUEST_URI}.cfm [QSA,L]

ErrorDocument 404 /404.cfm
但是,它并不指向404.cfm页面


有什么建议吗

它在做什么呢?它会打开通用服务器文件未找到屏幕