Skip to content

Latest commit

 

History

History

redirect-alternate

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

CloudFront Function

Redirect Alternate

Redirects to an alternate domain.

Create CloudFront function:

  • Function Name: redirect-alternate
  • Comment: Redirect to an alternate domain
  • Source Code: index.js

Publish then associate with one or more CloudFront distributions:

  • Distribution: select the distribution ID
  • Event Type: Viewer Request
  • Cache Behavior: Default (*)