Short URLs
This plugin is NOT WordPress 2.0 compatible and there are no plans to make it so.
Description:
This REALLY simple plugin allows you to use a short URL to your post. It also redirects any page loads of “index.php?p=#” to the permalink of the post.
This plugin is also smart enough to not try and redirect any page loads of “index.php?p=#” when you aren’t using permalinks. (Although there is really no need to be using this plugin if you aren’t using permalinks as your URL is already about as short as it can get.)
Basically, I wanted like ?p=#, but that wasn’t ugly.
Usage:
Click here to see it in action: http://viper007bond.com/post/38. Clicking that link will take you to a post about WordPress v1.5.2 being released and note that the URL in your address bar is now the full permalink.
Also try visiting this link that I don’t want people really using: http://viper007bond.com/index.php?p=38
The “38″ is the post ID of that post. Easiest way to find the ID of your post is to hover over your edit link, or if you don’t have one, look on the manage page in your WordPress admin.
You could also place some code like this somewhere in The Loop if you wanted to create short links on your site:
<a href="<?php bloginfo('url'); ?>/post/<?php the_ID(); ?>" title="Short URL to this post">Short URL</a>
Bug Fixes in v1.01:
If a post didn’t have a permalink and you tried to link to it, either with /post/# or index.php?p=#, it’d get stuck in an infinite redirection loop. This has now been fixed so that it doesn’t redirect if there’s no permalink.
Download:
Support / Feature Request Forum:
http://www.viper007bond.com/wordpress-plugins/forums/viewforum.php?id=13


Does the plugin use redirection to take to the long url form the short one?
what exactly is tht type of redirection it is using?
It uses PHP’s
header()to send the data to the browser:header('HTTP/1.1 301 Moved Permanently');header('Location: ' . get_permalink($_GET['p']));
The 301 code is so that the short URLs don’t get indexed by search engines.
Version 1.01 released. Fixed a silly redirection loop bug that existed. :/
hi
thanx for this plugin, but i encountered errors with my .htaccess, once the plugin activated you said ” Please visit your permalink page as to update your .htaccess file after activating.”… ok what i’ve done but i dont know what do i write for the structure…so now i cannot use my .htaccess without returning errors…if only i could have too your entire .htaccess, i think that’ll resolve the prob…i think
thanx again
ok it seems to work now…sorry
and good work
Good to hear you got it working. :)
This plugin appears to NOT be compatible with WordPress v2.0 Beta 2.