#!/bin/sh URL="http://thinkpad.oskog97.com" if [ -z "$(HEAD $URL & sleep .2; killall HEAD 2>/dev/null)" ]; then URL="https://web.archive.org/web/$URL" fi echo "Status: 302" echo "Location: $URL" echo