Harley Quine

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.Please check out the FAQ (the link’s floating on the right —–>). If you have a question feel free to ask it there. Bug reports/comments/complaints/death threats go below in the comments ;) Please be as specific as you can when reporting bugs. Tell me which version of Wordpress your using, whether it worked before and a detailed description of the problem. It doesn’t matter if you take three pages to tell me the problem.. the plugin works fine on this blog and I can’t get into your server’s brain to see what’s going on so you have to be the translator ;)

Download
Download It


13 Comments So Far

  • bob Says:
    July 20th, 2007 at 7:09 am

    Thanks.

    Dodgy Geezer

  • cooliojones Says:
    August 13th, 2007 at 2:05 am

    This looks like an excellent plugin. I downloaded it but haven’t installed it yet. Thanks for offering this though.

    Dodgy Geezer

  • Dan Says:
    August 30th, 2007 at 3:02 pm

    Any way to mask an entire directory? For instance, I have my Wordpress blog on server A. I place download files in a directory on server B. I want to mask the download URLs so it looks like they are coming from server A. I don’t want to create a rewrite for every file I upload to server B, just the directory. Then every time I upload a new file to server B, I can link in my blog to the rewrite address followed by the name of the file.

    Dodgy Geezer

  • TJ Says:
    September 12th, 2007 at 1:48 pm

    I get this error after making a short URL and clicking on it:

    Parse error: syntax error, unexpected T_ENDIF in /home/terryjet/public_html/wp-content/themes/talian-10/404.php on line 11

    Dodgy Geezer

  • Harley Says:
    September 12th, 2007 at 6:56 pm Harley

    The 404 page is your error page. A 404 means that the page is not found. As for the T_endif error you’ll have to look in the file mentioned to see what’s going on. I can’t see how this has anything to do with the URL script because this script just redirects to that page and doesn’t add code in the page or anything, so the page you’re trying to get to doesn’t exist. Check the URL and edit it. Lemme know how it goes.

    The Genuine Article

  • Justin Says:
    September 16th, 2007 at 2:08 pm

    How do I edit my htaccess file? I don’t have one and am not sure on how to create one. Thanks.

    Dodgy Geezer

  • robert Says:
    September 23rd, 2007 at 9:10 pm

    hi. nice blog . thanks.

    Dodgy Geezer

  • Broadband Says:
    February 20th, 2008 at 12:15 am

    Hi

    I have used the old u.php? version before without any problems, but this pluggin is just throwing up 404 errors.

    I have added the following to my .htaccess under all the other rewrite rules (used for permalinks);
    RewriteRule ^u/([0-9]+)$ wp-content/plugins/u.php?$1

    My wordpress is installed straight out the box in the root directory.

    Any ideas what is causing the error?

    Dodgy Geezer

  • Harley Says:
    February 20th, 2008 at 12:22 am Harley

    The plugin doesn’t throw up 404 errors it either re-directs to the place you said or it doesn’t. Your htaccess is pointing to the wrong place, where is the actual u.php? Should be in wp-content/plugins/. If you’re sure the path is right then it’ll be something to do with your htaccess sometimes they can be a bit funny :S If you email me the contents of your htaccess then I’ll see if I can spot where its going wrong.

    The Genuine Article

  • Broadband Says:
    February 20th, 2008 at 12:30 am

    Yeah its definately something to do with the .htaccess file, because if I link directly to the wp-content/plugins/u.php?1 it works fine.

    Just trying to find your email addy to send my htaccess to you.

    Dodgy Geezer

  • Jennifer Knox Says:
    February 28th, 2008 at 4:20 pm

    Just wondering if there is a way to make this work with the plugin, Optimal Title. I placed the Rewwrite rule above the current rules in my .htaccess file and got ShortURL working, only to find that Optimal Title was no longer working. Is there a way to make them peacefully coexist?

    Thanks!

    Dodgy Geezer

  • Harley Says:
    February 29th, 2008 at 10:18 pm Harley

    Hi Jennifer,

    I just had a quick scan of what Optimal Title does and it seems that it wouldn’t be worth going into it as Optimal Title goes defunkt on March 10th after Wordpress 2.5 is released. I guess you should pick one or the other until then, 10 days to go only! :D

    http://elasticdog.com/2008/02/optimal-title-functionality-now-in-wordpress-core/

    The Genuine Article

  • Adam Says:
    April 30th, 2008 at 4:10 am

    Harley,
    I’m not sure if I’m just missing something, or if your script was intended to do this, but I was wondering if there was a way around it. Now let me explain.

    I am trying to send my redirect links to another page, another server. Well whenever I click through one of my redirects your script keeps my url prefix (http://www.****.com/apps/redirect/SHORTURLHERE), and appends the “short_url” after it. Is there any way I can just get rid of my url prefix, and go directly to the other page?

    Dodgy Geezer



  • Leave a Comment

    The spam stopper lurvesss to eat comments but I fish them out daily. Don't panic if Akismet thinks you're spamming.. I'll know better ;P

    <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

    (required)

    (required)


    Subscribe without commenting.