Amazon S3 + CloudFront + Redirection rules don’t work

amazon s3amazon-cloudfront

my instance in amazon S3 works perfectly with its redirection rules to folders and files that don't exist on the bucket (their path converts to #arguments):

this

mediocafe.com.s3-website-us-west-2.amazonaws.com/redirect/thispath/hopeitworks

redirects me to the correct web

but if i try to access via my cloud front, it gives me a Key not found message.

what should I configure to allow cloud front access S3 files that don't exist and that trigger redirection rules?

Best Answer

Redirect works, the problem was that i was redirecting 403 errors, not 404