permashortlink

From IndieWeb
(Redirected from permashortlinks)
Jump to: navigation, search

A permashortlink (abbreviated PSL) is a URL using a short-domain that expands to a permalink; on the IndieWeb, PSLs use personal short domains to expand to the same person's personal domain, thus minimizing the fragility often associated with shortlinks.

Contents

Why

There are several reasons to create and maintain permashortlinks.

  • Content limits on POSSE destinations, where providing a permashortlink at the end saves space over a full permalink, thus allowing you to POSSE more of your content.
  • More reliable in email (some mail programs truncate/break URLs >70 chars)
  • Look nicer in IM, browser screenshots.
  • (re)typability from print, images - have retyped URLs from screenshots in slides, books, print advertising, magazine articles, billboards.[1]
  • Encourage visiting - The easier to read and type-in, the more folks visit the URL.

See also: http://tantek.com/w/Whistle#whyshortURLs

How

Here is a simple way to setup permashortlinks:

  • Get a personal short-domain
  • Set it up to redirect to your personal domain
  • Setup short path handling on your personal domain to expand and redirect to your permalinks.

IndieWeb Examples

Ordered roughly by when deployed.

Tantek

Tantek Çelik uses Falcon running on tantek.com with algorithmic permashortlinks POSSEd since 2010-01-26. Example:

Summary description:

This is sufficient to expand to:

  • http://tantek.com/YYYY/DDD/tn/ or
  • http://tantek.com/YYYY/DDD/bn/ respectively, where:
    • YYYY = year
    • DDD = day of the year (see related: http://en.wikipedia.org/wiki/ISO_8601#Ordinal_dates )
    • t or b = again a literal 't' or 'b'
    • n = nth post of that type that day
    • and that's sufficient to retrieve the post from storage, including slug text which follows the "...n/" in the permalink URL

For more details and background/thinking, see the interview/article:

Michael Owens

Template:mowens uses Whistler on https://mowens.com/ as of 2014-07-08.

Whistler is a Node.js module that implements a flexible version of the Whistle algorithm (by Tantek at http://tantek.com/w/Whistle) for shortening, expanding, and explaining links using NewBase60.

Whistler and the NewBase60 Node.js modules are both available on NPM and GitHub:

Silo Examples

Aaron Parecki 2009-12-08 I'm noticing everyone has their own URL shortener now.[2] E.g. silos:

Flickr

Flickr: flic.kr -> flickr.com

Build It With Me

Build It With Me: bldw.me -> builditwith.me

See Also

Personal tools
Namespaces
Variants
Actions
Recent & Upcoming
Resources
Toolbox