aws-samples / amazon-cloudfront-functions

Apache License 2.0
479 stars 78 forks source link

redirect-maintain-uri-querystring #24

Open joknoxy opened 2 years ago

joknoxy commented 2 years ago

Issue 11 & 7

This is a new function that will redirect to a new domain while maintaining the uri and query string values in the destination FQDN ('Location' response header).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

joknoxy commented 2 years ago

I'm afraid I mucked up the folder name using '_' instead of '-'

thomasturrell commented 2 years ago

Seems like a useful example.

I believe it would benefit from some tests.