Skip to content

Instantly share code, notes, and snippets.

@hallettj
Created November 20, 2022 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hallettj/e469f88b96184ac909b7f768b80a3a4e to your computer and use it in GitHub Desktop.
Save hallettj/e469f88b96184ac909b7f768b80a3a4e to your computer and use it in GitHub Desktop.
Netlify configuration to redirect a Mastodon handle
# Netlify configuration to set up a Mastodon handle for your own domain that
# forwards to your real account. This configuration allows people to search for
# me with @jesse@sitr.us, and to find me @hallettj@hachyderm.io.
#
# Put a configuration like this in a file called _redirects in the *publish
# directory* of your Netlify project. For my Gatsby site I put the file in
# static/_redirects, and at build time it gets copied to public/_redirects.
#
# Redirect documentation for Netlify is at https://docs.netlify.com/routing/redirects/redirect-options/
# Test redirect rules in the playground, https://play.netlify.com/redirects
/.well-known/nodeinfo resource=acct:jesse@sitr.us https://hachyderm.io/.well-known/nodeinfo?resource=acct:hallettj@hachyderm.io 301
/.well-known/webfinger resource=acct:jesse@sitr.us https://hachyderm.io/.well-known/webfinger?resource=acct:hallettj@hachyderm.io 301
/.well-known/host-meta resource=acct:jesse@sitr.us https://hachyderm.io/.well-known/host-meta?resource=acct:hallettj@hachyderm.io 301
/@jesse https://hachyderm.io/@hallettj 301
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment