hpr2904 :: DIY URL shortening - Âm thanh Lưu trữ Miễn phí

hpr2904 :: DIY URL shortening - Âm thanh Lưu trữ Miễn phí

Tác giả: klaatu

Hiện không có bản âm thanh nào. Vui lòng quay lại sau!

Giới thiệu

Summary: Quick tip on how to shorten an URL without a silly SaaS

Source: [http://hackerpublicradio.org/eps.php?id=2904](http://hackerpublicradio.org/eps.php?id=2904)

Original audio: [http://archive.org/download/hpr2904/hpr2904\_source.flac](http://archive.org/download/hpr2904/hpr2904\_source.flac)

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 ""Shortened URL"" > www/u/hpr/index.html

Your shortened URL is example.com/u/hpr