Last active
September 27, 2023 08:47
-
-
Save grifferz/5b05885568691fae33e2ffa963954c2f to your computer and use it in GitHub Desktop.
Apache config snippet to redirect Mastodon webfinger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteCond %{QUERY_STRING} ^resource=acct:andy@ [NC] | |
RewriteRule /.well-known/webfinger https://social.bitfolk.com/.well-known/webfinger?resource=acct:[email protected] [NC,L,R=301] | |
RewriteCond %{QUERY_STRING} ^resource=acct:grifferz@ [NC] | |
RewriteRule /.well-known/webfinger https://social.bitfolk.com/.well-known/webfinger?resource=acct:[email protected] [NC,L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment