I have several different sites running off WordPress, and the URLs tend to get fairly long and cumbersome (particularly when I try to publish them via Twitter). I recently purchased a very short domain name, and I'd like to use it as the root of a personal URL shortening service.
So ...
http://www.eamann.com/portfoliowould becomehttp://eam.me/portfoliohttp://www.mindsharestrategy.com/wp-xmlrpc-movabletype/would becomehttp://eam.me/df3DFhttp://www.prosepainting.com/coffee-shop-part-1/would becomehttp://eam.me/csp1- And custom things like
http://wordpress.stackexchange.com/questions/3076/feature-survey-what-would-you-want-in-a-resume-themewould becomehttp://eam.me/wpa3076
Basically, I want to set up and manage my own TinyURL-like server ... but with some specific requirements:
- It should integrate fully with WordPress so I can dynamically create new short URLs whenever I create a page or a post (every piece of content I create on each site should have its own short URL).
- I can specify if I want the URL to be random (like
/df3Df) or I can choose a unique string instead (like/wpa3076) at the time of URL creation - I should be able to view/edit/manage the URLs I have in the database from within WordPress
At the moment, I'm leaning towards a standalone system like YOURLS that lives in its own database. The problem I'm facing (and I'll confess now that I haven't attempted it yet) is integrating the system fully with WordPress. I want each post to automatically suggest a short URL before I hit "publish" and then automatically create the URL when I finally do "publish" the post. I'd also like to administer all of my links from within each of the sites using the service.
Is this even possible? Is there already a solution around to do this? If not, where do I start?
(Cross-posted to StackOverflow)