1 個回答
- 最新
- 最多得票
- 最多評論
2
If your index.html file is located in some folder, you can set it in the browser when you access your website
Or you can try a redirection rule in the S3 web hosting configuration
https://docs.aws.amazon.com/AmazonS3/latest/userguide/how-to-page-redirect.html#redirect-rule-examples
for example:
[
{
"Condition": {
"KeyPrefixEquals": "index.html"
},
"Redirect": {
"HttpRedirectCode": "302",
"ReplaceKeyPrefixWith": "dist/browser/index.html"
}
}
]
相關內容
- 已提問 6 個月前
- 已提問 1 年前
- AWS 官方已更新 3 年前
- AWS 官方已更新 2 年前