重定向 404 页面错误到 /404.html S3 yaml 文件

问题描述 投票:0回答:0

如果 404 页面重定向到我网站中的特定 404.html 页面,是否有办法在 S3 yaml 文件中设置规则?

我目前有我的 S3_website.yml 文件进行重定向,并且所有工作都正常,但是有没有办法指定是否返回 404 然后重定向。

site: _site/

redirects:
  activate: /
  application/sign-up.html: /index.html
  IF 404 PAGE ERROR: /404.html
amazon-s3 redirect http-status-code-404
© www.soinside.com 2019 - 2024. All rights reserved.