ShortURL

The Short­URL Word­Press plu­gin allows you to use your blog as your own URL short­ern­ing ser­vice by imple­ment­ing both the HTML and the HTTP Short URL Autodis­cov­ery spec­i­fi­ca­tions. Your short URLs will be in the form of http://domain/-code.

The autodis­cov­ery fea­ture allows third-party ser­vices that honor it to use your own short URLs instead of gen­er­at­ing new ones using ser­vices such as TinyURL, bit.ly, and oth­ers. This gives your posts and pages canon­i­cal short URLs that give you all SEO ben­e­fits and don’t leak traf­fic out to exter­nal domains and will pre­vent linkrot. The home­page short URLs is set to just http://domain/ as a unique feature.

The other great ben­e­fit of the Short­URL plu­gin is that the gen­er­ated short URLs won’t break if you change the perma­link struc­ture of your blog or rename the slug of a par­tic­u­lar post or page.

Due to the recent choice of both the micro­for­mats com­mu­nity and WordPress.com to use rel="shortlink" vs the alter­na­tive pro­pos­als, the Short­URL plu­gin is also using it now.

More on the topic:

DEMO: The short URL of this page is: http://nikolay.com/-1z

Plu­gin Statistics
Down­loads: 791
Rat­ing: 3 stars by 2 users
Cur­rent Version: 0.4.2 released 177 days ago

Down­load Ver­sion 0.4.2 (requires Word­Press 2.7 or later)

Please, visit the Short­URL at WordPress.org for more sta­tis­tics and reviews!

19 responses to “ShortURL”

  1. ralph Miller

    I unzipped the packet, uploaded and acti­vated the plu­gin. For the life of me, I can’t see the plu­gin any­where in the set­tings, or where to actu­ally use the plu­gin. Please help.

  2. ralph Miller

    Thanks for that infor­ma­tion. How do I go about get­ting the short url for my own use? For instance, if I wanted to post a short url in Twit­ter for one of my posts?

  3. ralph Miller

    I use HootSuite.

  4. ralph Miller

    I acti­vated the plu­gin and used both the_shorturl(), or get_shorturl() in this form in my single.php tem­plate file and noth­ing showed up.

  5. ralph Miller

    Here’s the error mes­sage
    Warn­ing: preg_match(): Com­pi­la­tion failed: unrec­og­nized char­ac­ter after (?< at off­set 10 in /wp-content/plugins/shorturl.php on line 87

  6. mitja

    I pro­pose an option to show the short URL on the page. That way if any­body feels like shar­ing it they don’t have to have to go through the trou­ble of a shortener.

    I added a quick and dirty func­tion to the script if you’re inter­ested, and could be an input that auto-selects text for the user for easy copy and past­ing, but more than any­thing I just wanted to show demand for such func­tion­al­ity:
    http://blowintopieces.com/blog/wp-content/uploads/2009/08/shorturl_showURLOnPage.patch

    Chee­rio.

  7. Olli

    Your plu­gin looks very inter­est­ing, will give it a try soon!

    Just a ques­tion: Let’s pre­tend I’m run­ning my Word­press blog under http://www.myblog.com — would it be pos­si­ble to use a sec­ond, shorter domain which also is mine (e.g. http://www.mybl.og) to show the short­ened URLs of http://www.myblog.com?

    Greet­ings from Ger­many,
    Olli

  8. Olli

    Sounds very great! The top-notch would be a fea­ture like already imple­mented in the “Synected” plu­gin: That vis­i­tors can gen­er­ate their own short-url (option­ally with an own string after the dash) — how­ever: Let me know if you need some beta-testing, my site is still under heavy devel­op­ment so I’m always able to test things out.

    Greet­ings,
    Olli

  9. Olli

    Hey there — how’s devel­op­ment of your plu­gin work­ing? Lookin’ for­ward to try it out!

    Greet­ings,
    Olli

  10. Akhand

    I pro­pose an option to show the short URL on the page. That way if any­body feels like shar­ing it they don’t have to have to go through the trou­ble of a shortener.

    I added a quick and dirty func­tion to the script if you’re inter­ested, and could be an input that auto-selects text for the user for easy copy and past­ing, but more than any­thing I just wanted to show demand for such func­tion­al­ity:
    http://blowintopieces.com/blog/wp-content/uploads/2009/08/shorturl_showURLOnPage.patch

    Chee­rio.…

  11. duka

    Hi Niko­lai,

    the redi­rect is work­ing fine, but the_shorturl() or get_shorturl() aren’t. I’ve found that it’s because of a var name in line 15 (should read $id, not $post_id) and now it’s work­ing ok.

    Thanks a lot for the plu­gin, it solves per­fectly a prob­lem I had with twit­ter and exter­nal shorteners.

  12. duka

    Also, a 301 (per­ma­nent redi­rect) seems more suit­able that the wp_redirect default 302 (tem­po­rary redi­rect), and it’s the usual choice for all short­en­ers (you can see the dif­fer­ent ser­vices choices here: http://searchengineland.com/analysis-which-url-shortening-service-should-you-use-17204).

Leave a Reply

Site last updated August 27, 2009 @ 11:54 pm; This content last updated August 15, 2009 @ 4:48 pm