{ "@context":[ "https://www.w3.org/ns/activitystreams", {"Hashtag":"as:Hashtag"} ], "published":"2022-11-10T22:51:38.071Z", "attributedTo":"https://sozial.dezern.at/actors/felix", "to":["https://www.w3.org/ns/activitystreams#Public"], "cc":["https://sozial.dezern.at/actors/felix/followers"], "content":"
As I want to have this account available under my \"usual\" handle already used for mail and jabber, I needed some kind of redirection. Other protocols have different methods to find out which server should be contacted to handle \"@domainname.tld\":
_xmpp-server._tcp IN SRV 5269 jabber.kro.hn.
tells the client to reach out to jabber@kro.hn on port 5269 to reach *@kro.hn accountsMastodon and other fediverse-implentations use the \"webfinger\" URL to obtain details about an account:
GET /.well-known/webfinger?resource=acct:felix@kro.hn
To create a redirect to ${HERE} there are the following possibilities:
cat .well-known/.htaccess
RewriteEngine On
RewriteBase /.well-known/webfinger
RewriteCond %{QUERY_STRING} ^resource=acct%3A@?[fF][eE][lL][iI][xX].* [OR]
RewriteCond %{QUERY_STRING} ^resource=acct:@?[fF][eE][lL][iI][xX].*
RewriteRule ^(.*)$ https://sozial.dezern.at/.well-known/webfinger?resource=acct:felix@sozial.dezern.at [R=301,L]