Siva Natarajan
Siva Natarajan

Reputation: 1429

Redirection to error page in Amazon S3 static website

i have a bucket and enabled static web site hosting in it.

Say i have only two files in the bucket (index.html) and (error.html)

If a request is hit with test.html, either access denied or no such key error is thrown.

How to redirect to error.html in case of such errors ?

Upvotes: 2

Views: 6581

Answers (1)

Julio Faerman
Julio Faerman

Reputation: 13501

In the S3 Management Console, open the properties of your bucket and enable the "Static Website Hosting". It will ask you for an index page and an error page and provide you an endpoint for your static website.

See: http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html

Upvotes: 7

Related Questions