Skip to content

Instantly share code, notes, and snippets.

@grifferz
Last active September 27, 2023 08:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save grifferz/5b05885568691fae33e2ffa963954c2f to your computer and use it in GitHub Desktop.
Save grifferz/5b05885568691fae33e2ffa963954c2f to your computer and use it in GitHub Desktop.
Apache config snippet to redirect Mastodon webfinger
RewriteEngine On
RewriteCond %{QUERY_STRING} ^resource=acct:andy@ [NC]
RewriteRule /.well-known/webfinger https://social.bitfolk.com/.well-known/webfinger?resource=acct:grifferz@social.bitfolk.com [NC,L,R=301]
RewriteCond %{QUERY_STRING} ^resource=acct:grifferz@ [NC]
RewriteRule /.well-known/webfinger https://social.bitfolk.com/.well-known/webfinger?resource=acct:grifferz@social.bitfolk.com [NC,L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment