Making a URL Shortener

How I made a URL shortener, and how you can too!

Making a URL Shortener

Recently, I've been making projects, trying to fill up my portfolio. One project I really wanted to make was a URL shortener.

Honestly, I thought it would be a lot harder. But I was able to break it down into a few easy steps:

  1. Allow user to submit a URL
  2. Create a unique identifier for the URL
  3. Save that identifier and URL to a database
  4. Show the user their new, shortened URL with the identifier.
  5. Redirect user if they go to the new URL, by getting the URL from the database.

That might not have been the best explanation, but you can check out mine here.

The only problem is, the URL is long. WAY too long.

See, I wanted to put a custom domain, to be specific, but just when I wanted to, went down, so I couldn't get it. That's actually the same reason I don't have a custom domain for this blog yet.

If you found this article helpful, please subscribe (it's free!) and share my blog with others.