ZOIS Blog

August 15, 2011

Shorter URLs

Filed under: Jobcentre Plus Database Mirror — Martin Sullivan @ 8:49 pm

Some time ago, in the last century, I acquired zois.com, and to be honest I never knew what to do with it — the web-site was built around a ‘.co.uk’ address. Continuing with my, as yet unpublished, experiments with mirco-blogging and social media has convinced me of the usefulness of short URLs. I can understand the point of bit.ly and its fellow travellers now. At the suggestion of a user I’m now using zois.com as a sort-of URL shortener, but only for Jobcentre Plus Mirror stuff. Under the covers Apache’s rewrite rules are employed to get to the regular, larger, home.zois.co.uk based URL. As an example:

The observant amongst you will see how that works. Three letters for the office code, then a number for the job. The whole lot is effectively the standard job reference without the redundant solidus (‘/’). An optional terminal ‘o’ will get you to a representation of the original Jobseekers Direct web-site posting, which will come through ZOIS‘s caches. The guessable URL should offer an advantage over more mechanical URL shortener systems, in that it can be hand-crafted, if necessary. There’s specifically no ‘www’ in front of these URLs.

This stuff works now, experiment with it. The usual caveats and feedback exhortations apply. Kudos to Paul  Geraghty for suggesting re-writes, for I’d originally thought of hacking some clunky PHP.

Update: I’ve noted that some are leaving the redundant ‘/’ in the reference, a bit of cut’n'pastery gone awry, I think. Anyway, I’ve put some additional re-write rules to cope with that so, for example, http://zois.com/ROI/78785, works and doesn’t send you to some Not Found typo-madness. 2011-11-13.

3 Comments »

  1. [...] such links, Twitter allows the Tweet to be edited. It can thus have its content modified, and the shortened zois.com link can have an ‘o’ added to allow a link back to the original posting, all be it through [...]

    Pingback by ZOIS Blog » A Better Tweet Link — September 11, 2011 @ 1:25 pm

  2. [...] every official looking JCP office using the JCP_Feedback account and ‘mentioned’ the URL-shortening services and thus the re-direction services. Some of them have started using [...]

    Pingback by ZOIS Blog » Twittering for Beginners — September 14, 2011 @ 2:22 pm

  3. [...] It also lead to rework that made the whole thing a good deal more efficient and cached. Latterly, a URL shortening service has been added and a number of the official JCP Offices are using [...]

    Pingback by ZOIS Blog » Tweeting JCP Offices’ Redirection Services — October 27, 2011 @ 2:05 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment


9 − = six

Powered by WordPress