不久前,当我摆弄我的 .htaccess 文件时,默认的 404 错误消息停止工作。现在,错误页面看起来像这样 http://www.minecraftserverland.com/s2/1
我的 .htaccess 文件是:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^s/(.*)$ /serverdisplay.php?server_id=$1
RewriteRule ^s2/(.*)$ /serverdisplay2.php?server_id=$1
RewriteRule ^u/(.*)$ /profile.php?username=$1
RewriteRule ^vote/(.*)$ /vote.php?server_id=$1
## EXPIRES CACHING ##
ExpiresActive On
ExpiresByType img/button.png "access plus 1 month"
ExpiresByType img/feeback.png "access plus 2 months"
ExpiresByType css/orbit-1.2.3.css "access plus 2 months"
ExpiresByType css/other.css "access plus 2 months"
ExpiresByType css/type/SourceSansPro-Regular-webfont.woff "access plus 2 months"
ExpiresByType img/Delete-icon.png "access plus 1 month"
ExpiresByType img/MinecraftServerLand2.png "access plus 10 days"
ExpiresByType img/ajax-loader.gif "access plus 2 months"
ExpiresByType img/background.png "access plus 1 month"
ExpiresByType img/banner/6b1ebf3c92.png "access plus 2 months"
ExpiresByType img/banner/962f857d10.png "access plus 2 months"
ExpiresByType img/banner/b26908a721.jpg "access plus 2 months"
ExpiresByType img/banner/c29f43e31f.jpg "access plus 2 months"
ExpiresByType img/banner/d68c807fde.jpg "access plus 2 months"
ExpiresByType js/jquery.validate.pack.js "access plus 1 month"
ExpiresByType js/jquery.placeholder.js "access plus 1 month"
ExpiresByType img/orbit/timer-black.png "access plus 1 month"
ExpiresByType js/jquery.contactable.js "access plus 1 month"
ExpiresDefault "access plus 2 days"
## EXPIRES CACHING ##
有谁知道是什么原因造成的?
我尝试添加自定义重定向
ErrorDocument 404 /home/minecra/public_html/errorpage.php
但这什么也没做。