Skip to content

Instantly share code, notes, and snippets.

@sammcj
Created November 15, 2022 12:57
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 sammcj/ce8905148d714ff9abd423bddda7abf6 to your computer and use it in GitHub Desktop.
Save sammcj/ce8905148d714ff9abd423bddda7abf6 to your computer and use it in GitHub Desktop.
Mastodon Redirects
{
"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"
}
]
}
@sammcj
Copy link
Author

sammcj commented Nov 15, 2022

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment