I have a Cloudfront domain that processes images from S3 in the form:
http://static.example.com/images/image1.jpg → S3: //mybucket/images/image1.jpg
I need to do a rewrite, so this url also works:
http://static.example.com/this-is-example/images/image1.jpg → S3: //mybucket/images/image1.jpg
Is it possible to do this with a cloud or other amazon service?
thank
S3, / - S3, , , :
<RoutingRules> <RoutingRule> <Condition> <KeyPrefixEquals>this-is-example/images/</KeyPrefixEquals> </Condition> <Redirect> <ReplaceKeyPrefixWith>images/</ReplaceKeyPrefixWith> </Redirect> </RoutingRule> </RoutingRules>
, //.
, .