Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 706 Bytes

File metadata and controls

23 lines (12 loc) · 706 Bytes

tworingsoft.com

tworingsoft.com and www.tworingsoft.com now 301 redirect to mcknight.io, preserving the request path and query string.

How it works

A CloudFront Function runs at the viewer-request stage on the CloudFront distribution. It returns a 301 before the request ever reaches the origin, so no backend is needed.

The function source lives at infra/cloudfront/redirect-to-mcknight-io.js.

Usage

Test the function against a sample event (DEVELOPMENT stage):

make test

Deploy an updated function to LIVE:

make deploy

Check distribution deployment status:

make status