View a markdown version of this page

Replace filters- with filters: - Dynamic Image Transformation for Amazon CloudFront

Replace filters- with filters:

If you put /(filters-)/gm in REWRITE_MATCH_PATTERN and filters: in REWRITE_SUBSTITUTION, you can call

https://<your-CloudFront-distribution>/filters:rotate(90)/<your-image>

instead of

https://<your-CloudFront-distribution>/filters-rotate(90)/<your-image>

to rotate your image. In this example, the solution replaces filters- (filters hyphen syntax) with filters: (filters colon syntax).