Skip to content

A configuration to redirect from the old documentation domain to the new one

License

Notifications You must be signed in to change notification settings

fingerprintjs/docs-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Documentation redirect

The cloudFront_function.js file is a CloudFront function to redirect URLs from docs.fingerprintjs.com to the new address: dev.fingerprint.com.

How to deploy

Initial setup

Go to CloudFront functions management. Create a new function, type Redirects from the old documentation to the new one (https://github.com/fingerprintjs/docs-redirect) in the "Description" field. Paste the function code from cloudFront_function.js, click "Save changes". Open the "Publish" tab and publish the function.

Go to CloudFront management. Create a new distribution. Leave everything default except:

  • Type dev.null or anything else in the "Origin domain" field
  • Type docs.fingerprintjs.com in the "Alternate domain name" field
  • Create (if not created) and choose an SSL certificate for the domain in the "Custom SSL certificate" field
  • Choose the CloudFront function created earlier in the "Viewer request" field
  • Type Redirects from the old documentation to the new one (https://github.com/fingerprintjs/docs-redirect) in the "Description" field

Function code update

  1. Go to CloudFront functions management. Open the function.
  2. Paste the function code from cloudFront_function.js, click "Save changes".
  3. Open the "Publish" tab and publish the function.

About

A configuration to redirect from the old documentation domain to the new one

Topics

Resources

License

Stars

Watchers

Forks