2014-03-12 93 views
0

当我更改代码并添加新的东西时,它甚至不允许我加载普通页面。如果删除ErrorDocument 404/error.php(和其他人),我通常可以进入我的网站。000webhost.com自定义错误页面不起作用?

这里是我的网站域名:carnageband.tk

下面是代码:

# Do not remove this line, otherwise mod_rewrite rules will stop working 

RewriteBase/

ErrorDocument 403 /error.php 
ErrorDocument 404 /error.php 
ErrorDocument 500 /error.php 

我应该怎么做来绕过它重定向我的页面? LINK

回答

0

我刚刚遇到同样的问题,问题似乎来自.htacess文件。删除.htaccess文件后,网页会再次加载。

我能够通过编辑cPanel文件管理器中的.htaccess文件来修复它,而不是通过FTP传输文件,但我不确定它为什么没有在以前工作。

我的代码类似于你:

# Do not remove this line, otherwise mod_rewrite rules will stop working 
RewriteBase/

ErrorDocument 403 /errors.php?p=403 
ErrorDocument 404 /errors.php?p=404 
ErrorDocument 500 /errors.php?p=500 
+0

谢谢!伴侣 –

相关问题