Why you need you own url shortener
Links feed the web and short links make it a bit more pallatable, but why host your own?
Here are my reasons:
- I like to own my information and I want control. This is my business after all
- I want a simple control centre to host all my links
- I like to track my links and clicks to measure engagement and interaction
- I like to play around with things. I can’t code but I like playing with the end result (and I wanted to learn to use plesk too)
- I like the congruence it offers to my brand (and I’m vain)
Choosing the right url shortener
I’ve used a handful of different tools to manage redirections. They’re all decent and they all have drawback. For a while I’ve been using the wordpress redirection plugin to create sexy branded links to hide long ugly urls and affiliate links on my blogs. But each wordpress installation has it’s own install so I have multiple links for different domains. Then there are the links I have at bit.ly and TET. It’s a sprawing mess and I really need something more sophisti-ma-cated with better stats and an on-the-fly bookmarklet to do the wizardy stuff.
I tried a few options. TEtoolbox is probably the most powerful. You can use your own domain with some CNAME tweakery and a quick FTP but the most powerful tool is the ability to tag a short link (called a tracker) to track the specific traffic source. You can create a link to your site and append a tag like /twitter or /anythingyoulike to identify where the visitors are coming from. The only drawbacks are the inability to add a custom slug to replace the number it generates and having to login to the site to create new links. TEtoolbox is insanely good which is no surprise because Tim is a pretty shit-hot developer. But it’s a crying shame that it’s branded just for traffic exchange tracking. I’d love to see a white label version or an alternative front end to open up the market beyond the traffic exchange community.
…That and the slug thing.
Besides bit.ly, I tried Austin Hallock’s white label shortener. It has basic tracking and stats. Just load it onto your domain and get it working in about a minute. It’s a handy way to get started but still not 100% what I need. Then I discovered lessn (as used by Mailchimp = solid endorsement) and the updated lessnmore version but just couldn’t get it to work on my server. (probably my clumsy technical ineptitude).
So after reading around a bit, I settled on YOURLS. It’s open source, has a brilliant interface with a java bookmarklet to create custom links on-the-fly and it even has a wordpress plugin for the ultimate in branding and workflow simplicity. The only drawback is the lack of tagging which is a requested feature on the developers site so it might well happen.
How to get set up your own url shortener
Skillz – intermediate | Time – about 30 minutes
1. Buy a short domain name (optional – but nice)
I love domainr for hacking domain names. Just enter a word and it’ll generate cool url suggestions. I managed to secure shvl.me at Namecheap which links perfectly with the Silicon Shovel brand. If you’re really techy, you can even use symbols in your domain name but that was just one step too far for a novice like me.
2. Set up your hosting – just point your DNS settings in Namecheap to your nameservers provided by your hosting account. For example, bluehost use ns1.bnluehost.com and ns2.bluehost.com.
3. Upload a simple index.html file into the root of your hosting account so you can see when the site is ready to roll.
4. Download the YOURLS script and install it. Of course, there are gazillions of Youtube tutorials on how to do it. I followed this one to the letter and had no problems. The guy talks pretty fast so use the pause button. (He also pronounces the word “admin” as “atom” but he’s a smart kid so I’ll forgive him). The most important part I found was to make the changes to the config.php file (from sample-config.php) with database details and create login details before you upload it to the server.
Here’s the order:
create database *→ modify config.php → FTP to server
[*Bonus step – If you need help creating the MySQL database, watch this video for cPanel or this video for Plesk)
5. Go to http://yoursi.te/admin/install.php using the username and password you created in the datebase. If you see a prompt to create your own .htaccess file it’s nothing to worry about. Just create a text file in the same directory as the script files and enter the details from the developers wiki then raname it to .htaccess (no file extension). The leading period makes the file invisible so make sure you have the FTP setting to “show invisibles”.
6. Do the linky thing. Login at http://yoursi.te/admin using the username and password you created in the datebase and start creating your shortened links.
7. Setup your bookmarklet – In your admin panel goto ‘tools’ and drag the Advanced Bookmarklet to your browser toolbar and you can create links whenever you like (without visiting your admin panel).
Booyah – now to hook up WordPress
If you wanna get really fancy, you can install the YOURLS: WordPress to Twitter plugin on your wordpress blog.
8. Install the plugin as usual (here’s a video from Matt but I doubt you’re new to this). Activate it and go to Settings > YOURLS.
9. Fix the plugin the settings – the instructions are super-simple and they’d just be redundant here. You’ll need to create a new twitter app. If you’ve never done this, you won’t believe how simple it is and there even a help page inside the wordpress settings page showing you what details to enter. Then you just copy and paste some details from your twitter app page to the plugin in wordpress.
10. Close the loop, you can set the plugin to post a tweet (with your own shortlink) for every post you make in wordpress and it will show your blog name as the source of the tweet for extra branding mojo.
That’s all there is to it. It’s all copy and paste stuff so don’t be afraid to try it. And if you make a mistake, what’s the worst that can happen?
And all in 10 nice easy steps.
Pingback: Tweets that mention Host Your Own URL shortener (Tutorial) — Silicon Shovel -- Topsy.com