Created
November 15, 2022 12:57
-
-
Save sammcj/ce8905148d714ff9abd423bddda7abf6 to your computer and use it in GitHub Desktop.
Mastodon Redirects
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
{ | |
"appVersion" : "3.1", | |
"bundleID" : "io.github.mshibanami.RedirectWebForSafari", | |
"createdAt" : "2022-11-15T12:28:49.242Z", | |
"kind" : "RedirectList", | |
"redirects" : [ | |
{ | |
"comments" : "", | |
"destinationURLPattern" : "https:\/\/aus.social\/@$2@$1.social", | |
"exampleURLs" : [ | |
"https:\/\/mastodon.social\/@mastodon", | |
"https:\/\/aus.social\/test", | |
"https:\/\/infosec.exchange\/@mastodon" | |
], | |
"excludeURLPatterns" : [ | |
{ | |
"type" : "wildcard", | |
"value" : "https:\/\/aus.social*" | |
} | |
], | |
"isEnabled" : true, | |
"kind" : "Redirect", | |
"sourceURLPattern" : { | |
"type" : "regularExpression", | |
"value" : "^https:\/\/(infosec.exchange)\/@(.*)" | |
}, | |
"title" : "Infosec.exchange to Aus.Social" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example "Web Redirect" rule to redirect all links to a user on a given mastodon instance / domain (infosec.exchange in this case) to your instance (in this case aus.social).