使用.htaccess重定向到403页面时出现404错误?

时间:2013-03-06 19:19:55

标签: html .htaccess

我收到404问题:

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 

我的.htaccess看起来像这样。我的.htaccess和index.html位于'bar'文件夹中:

 ErrorDocument 403 /public_html/foo/bar/errorpages/403.html

order deny,allow

deny from all

allow from 123.456

我的错误中也有.htaccess:

order deny,allow
allow from all

我重定向错了吗?

更新

我也尝试将目录更改为

/bar/errorpages/403.html

但仍然是同样的问题:(

1 个答案:

答案 0 :(得分:0)

尝试使用

order allow, deny

代替。

查看示例here

相关问题