Tuesday, May 04, 2010

» openSUSE repository URL shortening

Hacked a little lighttpd redirect on s.opensu.se to shorten URLs to openSUSE package repositories. Simply use http://s.opensu.se/r? followed by the name of the repository, without the slashes (/) to separate, as it is redundant with ":" Examples: Arguably, not quite as short as with bit.ly or tinyurl.com, but still shorter than the full URL ;)



Blogger DimiG said...

Thank you, very good info :)

Blogger Martin Vidner said...

Ah, nice. Except what we get is not a repository. And tying to get it, like http://s.opensu.se/r?network:utilities/openSUSE_Factory returns 404 Not Found.

I think that would be a lot more useful. Unless, of course, you omitted it on purpose to save resources.

Blogger Loki said...

Martin, works now ;)

Anonymous Anonymous said...

Nice. Now, wouldn't it be nice to simply shorten the original URLs, too? Like using repos instead of repositories (and redirecting from the old ones to the new and shorter ones)? Just an idea.


Post a Comment

<< Home