Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


HPR2904: DIY URL shortening

Hosted by Klaatu on 2019-09-19 00:00:00
Download or Listen

Make a directory to house your shortened URLs.


$ ssh example.com mkdir public_html/u

On demand, create a subdirectory for the shortened URL you want to create.


$ ssh example.com mkdir public_html/u/hpr

Create an HTTP redirect in an index.html file.


$ ssh example.com echo ""<html><title>Shortened URL</title><head><meta http-equiv='refresh' content='0; URL=http://hackerpublicradio.org/correspondents/0078.html' /></head></html>"" > www/u/hpr/index.html

Your shortened URL is example.com/u/hpr

Comments



More Information...


Copyright Information

Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.

The HPR Website Design is released to the Public Domain.