own your links

 Own your links  is the concept of creating links on your own website that redirect to other properties you own, for instance social media accounts or content you have created on other websites.

Why
By owning a link, you can change its destination as appropriate without having to rely on the owner of the site to which a link points setting up redirects if the link destination changes.

This may be useful if you change your profile name on a social media service. If someone takes your old profile name and you always link directly to your profile, people may not find the content to which you were linking when you first created the link.

Google site-specific searches with your site, will show content from sites you have setup such redirects for!

How to
To "own" a link, you should:


 * Come up with the name for your link and identify where it is going to point.
 * (i.e. example.com/github/ could point to github.com/ )
 * Create a redirect on your site that points the name of your link to the destination.
 * Use your link when referring to the resource to which your link points.

For instance, Alice may create a page on her site with the URL example.com/twitter/. Alice uses this URL to link to her Twitter account rather than her main Twitter URL.


 * You may want to use a &lt;meta&gt; tag with  as part of a 302 Redirection (meta http-equiv status), however this is limited to a specific URL. See below for how to redirect all URLs that start with a particular path.

How to generically
For silos with deep links like GitHub and Twitter, it's better to use the name of the silo as your path, because the rest of the path is highly dependent on the silo.

For some silos with shallow or generic paths, you can use a generic name instead for redirecting.

For example, wiki silos often treat (most) paths a generic flat list of names of pages, thus for those you can use /w/ or /wiki/ or /topic/ as your redirect path.
 * E.g. see below examples, undefined uses /w/ to redirect wiki pages to the PBWorks silo.

How to Apache htaccess
If you use Apache with mod_alias enabled and can access your .htaccess file, you can add an instruction like

replacing "yourGHusername" with your GitHub username.

How to nginx config
You can use the following nginx config to own a link:

location ~ ^/github/(.*) { return 307 https://github.com/yourGHusername/$1; }

replacing "yourGHusername" with your GitHub username.

uses a "one liner" approach as follows (within a  block)

rewrite ^(/github)(.*) https://github.com/jalcine$2 redirect;

Tantek
undefined owns his links for: Both of which show up in Google site-scoped searches as if they’re on his domain! E.g.
 * PBWorks homepage & individual pages since at least 2010-09-21 with tantek.com, and since 2010-07-24 with his shortdomain ttk.me.
 * https://tantek.com/w/
 * https://tantek.com/w/Markdown
 * GitHub profile & repos since at least 2015-07-23
 * e.g. https://tantek.com/github/cassis
 * related post: https://tantek.com/2021/084/t1/ownyourlinks-indieweb-github-redirect
 * more details and future thoughts: User:Tantek.com
 * Google search for site:tantek.com "tantek.com/github/cassis" (first result is content from Github.com and third result is content from PBWorks, shown in results as if they are on tantek.com)

James

 * owns his Twitter and Instagram links as of May 2022:
 * https://jamesg.blog/github/
 * https://jamesg.blog/instagram/

Matthias
owns his links for:


 * Twitter since around 2019:
 * https://notiz.blog/@ redirects to https://twitter.com/pfefferle
 * I wrote/use a little WordPress Plugin, to also own tweets/toots and code (github.com, gitlab.com, ...): https://github.com/pfefferle/wordpress-ownyourlinks

Jacky Alcine
owns his links since 2022-07-27 for silo path redirects for /twitter and /github:
 * "Small QoL change to my site (on a proxy level): I've added support for "owning" my own URLs. So /twitter/status/1545916088956903424 properly redirects to Twitter and /github/sqlite-hypercore goes to the right place. Long-term goal is to retroactively update links on my site that point to myself to point to my site first so, later down the line, I can actually serve it from my site (and go to the silo if needed)." July 27, 2022

Cam Pegg
owns his Github, Twitter, Mastodon and Strava links as of July 2022:
 * https://campegg.com/github and https://⛺️🥚.to/github
 * https://campegg.com/twitter and https://⛺️🥚.to/twitter
 * https://campegg.com/mastodon and https://⛺️🥚.to/mastodon
 * https://campegg.com/strava and https://⛺️🥚.to/strava

Other Examples

 * URL shortener software https://yourls.org uses a redirect for github releases
 * https://yourls.org/download redirects to https://github.com/YOURLS/YOURLS/releases as of 2022-05-25