静态网站配置非法。
用户设置静态网站配置时,重定向规则中 HttpRedirectCode 取值不在 [301, 399] 范围。
您进行静态网站配置时,重定向规则中 HttpRedirectCode 取值为非法值 403。
PUT /?website HTTP/1.1 Host: bucketname.tos-cn-beijing.volces.com Date: Fri, 30 Jul 2021 13:59:18 GMT Authorization: authorization xxx { "RedirectAllRequestsTo": { "HostName": "example.com", "Protocol": "https" }, "IndexDocument": { "Suffix": "index.html", "ForbiddenSubDir": "false" }, "ErrorDocument": { "Key": "error.html" }, "RoutingRules": [ { "Condition": { "KeyPrefixEquals": "abc", "HttpErrorCodeReturnedEquals": 403 }, "Redirect": { "HostName": "example.com", "HttpRedirectCode": 403, "Protocol": "http", "ReplaceKeyWith": "redirect.html" } } ] }
参见 PutBucketWebsite,正确构造静态网站配置,确保重定向规则中 HttpRedirectCode 取值合法。