Short URL Plugin

Download from WordPress Extend

Description

Short URL allows you to create shorter URL’s and keeps track of how many times a link has been clicked. It’s useful for managing downloads, keeping track of outbound links and for masking URL’s. Clicking the Clear All Clicks button will reset the count for each entry.

Features:

  • Pagination of links
  • Easier setup of htaccess (permalinks)
  • Advanced users can now pass variables to their redirects.
  • Customisation of the permalink so you’re no longer limited to /u/23.

Installation

  1. Upload `short-url.php` and ‘u.php’ to the `/wp-content/plugins/short-url-plugin` directory or automatically install from WordPress 2.7+
  2. You can either keep the u.php in the plugins folder or move/copy it to your root folder. Two u.php’s won’t make any difference.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Visit Plugins > ShortURL to setup the permalink options, add, remove and edit links.
  5. Your links will now have a Short URL such as http://www.yourdomain.com/u/5

Frequently Asked Questions

How do I use it?
Visit the ShortURL page in your dashboard (Plugins > ShortURL) to add, remove and edit links. Then use the outputted url in your posts/emails wherever.
How can I customise the page users see if the URL is not found?
Modify u.php if you’d like a custom message.
How do I make it do a 301 redirect instead of a 302?
Once you have set up the plugin and made sure everything is working edit your .htaccess file (in your root directory) and add [R=301] to the Short URL redirect line.

If you have:

RewriteRule ^download/([0-9]+)$ wp-content/plugins/short-url-plugin/u.php?$1|$2

You’d turn it into:

RewriteRule ^download/([0-9]+)$ wp-content/plugins/short-url-plugin/u.php?$1|$2 [R=301]

Upgrading

Simply upload the files and go. Files should be in a short-url-plugin folder in wp-content/plugins.

3 Comments

♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦

♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦ ♦

3 Responses to Short URL Plugin

  1. Luis Santana says:

    Hey just wondering if you could add the functionality to autocreate the shorturls while creating posts.

  2. Pingback: 7 Url Shortner plugins for Wordpress

  3. Pingback: Short URL Plugin | Harley Quine

Leave a Reply

Sometimes comments get eaten by the spam stopper but I try to fish them out every now and then. If this is your first time posting here then your comment will be moderated. You can follow responses through the comments RSS feed.