Posts Tagged wordpress

Create Your Own TinyURL Service for Wordpress

I don’t particularly like using URL shortening services. I think I first noticed them getting used rather prolificly in the Guardians technology section to include lots of random links to bizarre web content. TinyURL’s own web site wouldn’t particularly inspire me to go ahead and make use of it either. But, because of my own use of services such as twitter, I’m forced to shrink down links to get within those 144 characters.

Herein lies a problem – If said URL shortening service disappears, all my links are broken to all that interesting content I worked so hard to find. Not good.

In order to our bit to help, a number of developers and even services have taken action in order to make sure they provide alternatives for the links over which they’re responsible.

I’ve installed a plugin here which uses the recently puchased domain “woot10.eu” to provide alternative links using the code <link rev="canonical" href="shorter link" />. My full ianwootten.co.uk domain does not lend itself well to be able to provide a shorter URL on the same domain unforunately.

There is a whole huge discussion on the approriateness of using this technique (mainly) due to the rev attribute not being included in the HTML5 spec. See the comments in Chris Shifletts post for more on this.

Anyway, Duncans plugin takes the id of any wordpress post and coverts it to base 36 (instead of 10) and offers up the alternative in the header of each post. I believe the conversion could go all the way up to 62, if php’s base conversion actually supported the use of different cases in conversion.

In my own case, I’ve had to forward the links from woot10.eu across to www.ianwootten.co.uk using a .htaccess file so that the plugin is actually able to pick them up.

Now when you visit:

http://woot10.eu/p8p you’ll be forwarded on to the longer URL such as http://www.ianwootten.co.uk/2009/05/15/my-vicious-circle-of-posting-quality-content.

This isn’t particularly useful if you want to find the alternative for URL, as you’ll have to hunt through the source of a post. For that I’d suggest Simons bookmarklet which looks for an alternative link, or creates one if it doesn’t exist using tinyurl. As an aside, there looks to be an interesting talk on the canonical attribute and link element by Matt Cutts of google here.

Tags: , ,

2 Comments

What do I have to contribute?

It has struck me over the last couple of days and it’s a reflection of my attitude to being interested in geeky things in general. I’m an elitist. When I started my blog back in 2003, I loved the fact that relatively few of them existed. It was a reflection of my day to day life and I felt my voice was being heard (even though I had no analytics tools to back that up and it was not particularly interesting).

Back then, I started out on Movable Type and quickly moved it over to b2/cafelog, which later grew into Wordpress. Fast forward 5 years to now and every manner of blog subject exists, whilst in the meantime my own seems to have fallen into a state of disrepair.

I think my blogs’ own slowdown has occurred because blogging about day to day life is not so much fun now – I’m no longer unique as I was in terms of the technical ability of being able to output my thoughts. Anyone can start a blog, tumblelog, lifestream or twitter account and use it to expose their daily activity online. They need to know nothing, or very little at all about how the back end works. So I’m now left thinking, what do I have to contribute in all this?

My own PhD research has had little exposure here, where if I had chosen to air my thoughts, it might be continuing in new directions from discussion which may have opened up around it. Instead, it is hidden away in research papers and closed forums which an average joe may never come across.

I’m proposing that I push to air my thoughts on all manner of subject here over the coming year, as well as my usual day-to-day activity. Hopefully I’ll be contributing something new, something interesting, something playing on my mind and which I want to discuss with each post.

I’d love it if you’d join me for the ride and I promise I won’t be at all elitist.

Tags: , ,

1 Comment