-
Notifications
You must be signed in to change notification settings - Fork 19
Implementing shorturls? #6
Comments
Hey @ndarville - your question has several avenues that end in different results, depending on which path you choose to travel. The easiest way is pretty obvious: use a system that already exists (bitly, tinyurl, is.gd, etc.) to create the short URLs. These services - like anything else on the internet - have the possibility of going under, which would cause those shortened URLs to disappear. Another way would be to host your own URL shortening service. It's way more involved, but obviously gives you total control over the system. The popular self-hosted URL shorteners (YOURS and phurl) are PHP scripts that live on some server that you are in charge of. Here's another idea: if you are using GitHub Pages and have a server that you'd like to use to help automate the creation of these short URLs, take a gander at the Which route you decide to take depends on the level of effort you wish to trade off for the amount of control you want to have over the system. Personally, I think URL shorteners are very rarely necessary. The only time I need to shorten a link is when I'm sending a tweet, but Twitter does that automatically through its t.co service. |
@troyswanson @ndarville what about something with |
Same, I've never used it, but I believe it deals with creating redirects within your site, which is only for your own domain. For instance, setting up a "vanity URL" like |
@troyswanson yes, but it may work for what @ndarville wants; and as you said, that be, e.g. |
It would be awesome to have some special keyword built into https://github.com/jekyll/jekyll-redirect-from ... :) |
@parkr On second thought, maybe not, huh? |
Yurrrrp. |
So the parting advice is to not involve Jekyll in the process at all? |
My parting advice would be to use jekyll-redirect-from and use more semantic short URL's, rather than the base 64 encoded gobbledy-gook we love so much. ;) E.g. My post "The Crime of Net Neutrality and What We Can Do to Fix It", I'd probably shorten that to |
Bingo. 🙌 |
What is the best and/or easiest way to create base16 shorturls (short urls) mapping from your blog posts to your own domain without relying on services like bit.ly—which don’t protect your links, should the company fail or get acquired?
How have you implemented them on your site?
The text was updated successfully, but these errors were encountered: