I recently acquired leav.in because I wanted to make my own URL shortening service. After spending a few hours making a little Rails application that connected to a backend service and a nice little UI, I decided to actually google "custom domain URL shortner." Low and behold, bit.ly offers a free service, bit.ly pro that provides custom domain short URL service and then some! It was a little difficult to fiddle through (not because of configuration, but just finding stuff), so here's a little walk through to help you out!
- Buy a short domain name. I recommend name.com just because they give great tools for managing DNS, are cheap, and their DNS updates almost instantly.
Create a bit.ly account:
Add bit.ly pro to your account (it's free)
Enter your settings panel:
Click on your bit.ly pro settings:
Go and modify your DNS records with your host as described in the grey box. Do this first so that the changes can populate as you do step
Enter your short URL domain in the box provided and click "Add Short Domain".
Be sure to verify that your DNS is configured correctly. Depending on your provider, you may need to wait up to 48 hours for these changes to populate:
Unless something terrible went wrong, you should see something similar to the following:
Seth Vargo is a Developer Advocate at Google. Previously he worked at HashiCorp, Chef Software, CustomInk, and a few Pittsburgh-based startups. He is the author of Learning Chef and is passionate about reducing inequality in technology. When he is not writing, working on open source, teaching, or speaking at conferences, Seth enjoys spending time with his friends and advising non-profits.