Short URL Plugin

Short URL is a Wordpress plugin that allows you to take a long URL such as:

http://www.harleyquine.com/downloads/php-scripts/somefile.zip

and turn it into:
http://www.harleyquine.com/u/1

The script also has a click counter and admin page so you can keep track of your short URL’s easily. Short URL’s can be used for tracking downloads, masking URL’s or count outgoing clicks. The plugins links can now be easily set up for either htaccess/permalink structure or the regular type.

Get it from the Plugin Directory

Advanced Short URL Functions
Variables can be passed to the redirected page by using the custom $2 in the link URL. An example of this could be to get search results.

Example: Say for some weird reason you wanted to dynamically link to this sites search.. first off you’d set your link URL to something like search/$2 (the full URL would then be something like http://www.yoursite.com/search/1/keyword. The plugin takes in the keyword. You’d set up a redirect to http://www.harleyquine.com/?s=$2. Then whatever the user put in $2 it’d be put in the $2 place in your redirect. Using this method you could have a whole host of dynamic searches and be able to keep track of which search site your users are using.

If you need help with getting this plugin set-up please post support requests on the support page and not here.

32 Responses to “Short URL Plugin” (Newest shown first)

  1. David Says:
    May 10th, 2009 at 7:14 pm

    I get this error when activating the plugin

    Parse error: syntax error, unexpected $end in C:\Users\David\html\wordpress\wp-content\plugins\short-url-plugin\short-url.php on line 257

    I tried to investigate myself but no look since the structure seemed fine and the IDE didn’t detect anything

    Dodgy Geezer
  2. Allstar Says:
    April 26th, 2009 at 1:51 am

    Great plugin,one question.Is it posible to get the latest added link at the top of the redirects page instead of the bottom?Cause i got a lot of links to mask over (1200) and right now its a drag to scroll down to the end of the page everytime :-s
    Thanks,good work.

    Dodgy Geezer
  3. Dee Says:
    April 7th, 2009 at 10:18 pm

    Oh and to add to the issue im using IIS7 with godaddy hosting

    Dodgy Geezer
  4. Dee Says:
    April 7th, 2009 at 10:17 pm

    My domain points to a subdirectory of my primary domain. I would like to mask the primary domain name.. http://www.Mydomain.com\MySubdomain\…
    So that it shows http://www.MySubdomain.com\… If i use url masking it hides the \… in my example, and i dont want that. Will this plugin help>?

    Dodgy Geezer
  5. Harley Says:
    March 24th, 2009 at 1:46 am

    Short URL Plugin was updated today with (hopefully) easier setup and better functions. If you’ve tried it before and got 404 errors then give this one a bash as the htaccess support has been improved quite a bit. The update should be available from your plugin page just as soon as the Plugin Directory gets a move on and updates the SVN ;)

    The Genuine Article
    • Robert D. Says:
      April 5th, 2009 at 5:27 am

      Is there any chance that these two things could be done in the next version?

      1) Option to use hexadecimal numbering (more links before digit rollover)
      2) Each post automatically gets a short URL?

      Dodgy Geezer
  6. Corey Says:
    March 21st, 2009 at 1:08 pm

    Hello! My website is not yet live, but I am attempting to mask two affiliate URLS that are built into my template ad space. I just tested them, and instead of going to the intended masked site, they directed to the only post I have that starts with the letter U.

    My permalink structure is year/month/post-name/post-id. Any suggestions?

    Dodgy Geezer
    • Harley Says:
      March 21st, 2009 at 7:14 pm

      Hi there,

      The problem is with your htaccess the rewrite rule isn’t in the right place. Can you email me and attach your htaccess file and I’ll take a look at it. My email addy can be found from the contact page. Thanks :)

      The Genuine Article
  7. Raymond Says:
    March 15th, 2009 at 2:00 am

    Thanx a lot for this plugin, i am currently redeveloping my existing website into a new one with wordpress. Only the /u/1 thing isn;t working for me. So a simple thought: replace all u/ by link/ but that ain’t working.

    Can you please tell me how i can replace this and find it working properly? Thanx in advance!

    Dodgy Geezer
    • Harley Says:
      March 15th, 2009 at 10:21 pm

      If htaccess isn’t working for you then your link will be http://linktoscript.com/u.php?1 <== or whatever ID number it is. The script also works that way. Htaccess seems to be the biggest problem for users of these scripts. If you need more help or would like me to take a look at your setup to get it working the way you’d like (by the way my support is free, the hire me option is just for those that want to hire me ;) then leave a message on the support page.

      The Genuine Article
  8. Dipoh Says:
    March 11th, 2009 at 3:39 am

    Thanks a lot for this very helpful plugin. I have been looking for this for a long time. I had it working. Thanks again…

    Dodgy Geezer
  9. FitLine Says:
    March 5th, 2009 at 12:54 pm

    Used it, works great!

    Thanks for sharing

    Dodgy Geezer
  10. chris Says:
    February 17th, 2009 at 8:08 pm

    Yep – same problem as above. The created shorturl just takes me to a 404. Shame – great idea

    Dodgy Geezer

What they're saying elsewhere about “Short URL Plugin”

  1. May 4th, 2009 at 2:42 am

    [...] Short URL – If you have a nice short domain like tmtips.com, doesn’t it seem like a waste to use a service like tiny url when you post a link on site like twitter? This plugin makes it easy to build (and monitor stats for) short urls on your own domain. [...]

    Dodgy Geezer
  2. February 20th, 2009 at 3:19 am

    [...] The solution? Use the URL shortening service of websites like TinyURL or set up your own. I found this excellent WP plugin called (what else?) “Short URL Plugin” by Harlequine. [...]

    Dodgy Geezer
  3. January 11th, 2009 at 7:52 pm

    [...] ShortUrl Comme indiqué dans son nom, ce plugin vous permettra de raccourcir vous même les urls pour Twitter. Plus d’infos par ici. [...]

    Dodgy Geezer
  4. August 6th, 2008 at 3:16 pm

    [...]   Short URL,转换过长的链接为一个相对短的链接。   主要是那些提供下载的站点,一般下载路径都过长并且难记,这款插件可以可以让过长路径变得简短好记。安装和使用小众软件有一篇很详细的文章,推荐各位查看。 [...]

    Dodgy Geezer
  5. August 5th, 2008 at 2:19 pm

    [...] Wordpress 的插件 Short URL Plugin [...]

    Dodgy Geezer
  6. July 23rd, 2008 at 10:55 pm

    [...] Short URL allows you to create shorter URL’s and keep track of how many times a link has been clicked. It’s useful for managing downloads, keeping track of outbound links and for masking affiliate URL’s. [...]

    Dodgy Geezer

Discuss

The spam stopper lurvesss to eat comments but I fish them out whenever I can. Don't panic if Akismet thinks you're spamming.. I'll know better ;P I get a huge volume of spam and mail from this site but I do try to reply in a timely manner, if I've overlooked you it's not cos you smell or anything ;oP~~

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>