-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] 创建的404重定向提示重定向次数过多 #3054
Comments
感谢反馈。 |
zhengkunwang223
pushed a commit
that referenced
this issue
Nov 27, 2023
wanghe-fit2cloud
pushed a commit
that referenced
this issue
Nov 28, 2023
v1.8.4 版本已发布。 |
更新版本后还是复现了该问题,访问 |
更新之后可以删掉重新填一下,如果还是跳转过多可能是填错了。 |
KaySar12
pushed a commit
to KaySar12/1Panel
that referenced
this issue
Oct 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1Panel 版本
V1.8.2
问题描述
貌似 OpenResty 里面没有自定义 404 错误页面的功能,只看到一个创建重定向。
我在重定向里添加了404重定向,重定向的目标地址为我的网站目录下的 404.html 单页面。
我随手访问一个不存在的路径,浏览器响应“重定向次数过多”,在地址栏里域名后面有 N 个 404.html。
重现步骤
① 在网站配置里,添加重定向;
② 类型选择404,方式选择301,目标 URL 地址填网站目录下的404静态页面(https://xxx.com/404.html);
③ 随机访问不存在的路径。
期待的正确结果
正确跳转到 404 页面。
相关日志输出
No response
附加信息
看到 issue 里,四月份就有人提出过这个需求,但是目前为止这个功能还没有开发上线。
The text was updated successfully, but these errors were encountered: