gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 03:34:38 24 4
gpt4 key购买 nike

我收到一个 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

还是一样的问题:(

最佳答案

尝试使用

order allow, deny

相反。

看例子here .

关于html - 使用 .htaccess 重定向到 403 页面时出现 404 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15256100/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com