https://aaa.com/index.htmlにアクセスするとhttps://aaa.comに飛ぶようにしたいです。
AWSに置ける.htaccess的役割はバケットポリシーのRidirection Rulesがそれに相当するのでしょうか、、それとも別の設定が必要なのでしょうか。
■やりたいこと
・https://aaa.com/index.htmlにアクセスするとhttps://aaa.com/に飛ぶ
■出来ていること
・S3のバケット作成
・CloudFrontを使ったhttps
■出来ていないこと
・index.htmlにアクセスしても/に飛ばない。
■試したこと
①バケットポリシーの変更
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AddPerm",
"Effect": "Allow",
"Principal": "",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::aaa.com/"
}
]
}
② Static website hostingリダイレクトルール (任意)の追加
<RoutingRules> <RoutingRule> <Condition> <KeyPrefixEquals>/index.html</KeyPrefixEquals> </Condition> <Redirect> <HostName>aaa.com</HostName> <ReplaceKeyWith>/</ReplaceKeyWith> </Redirect> </RoutingRule> </RoutingRules>AWSに詳しい方よろしくお願いいたします。

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/11/01 04:24
2018/11/01 06:56
2018/11/01 07:05
2018/11/01 10:16
2018/11/01 12:24
2018/11/02 11:21