Short URL service in the same directory as WordPress?
June 15, 2011 2:27 PM Subscribe
How do I create a custom bit.ly-like short URL service in the same directory as a WordPress installation?
posted by joshrholloway to computers & internet (5 answers total) 2 users marked this as a favorite
I have an existing WordPress 3.0 installation for my blog. The current URL structure for individual posts is something like this: http://example.com/2011/post-title-goes-here
I would like to keep this current structure, but also use my domain (without subdirectories or subdomains) as a bit.ly-like "short" URL service where I can shorten not only my own content, but links to other content as well.
So, for example, the URL I posted above would work, but I want something like this to work as well: http://example.com/OC469ei
Right now I have a YOURLS installation in a subdirectory that works, so my links are something like this: http://example.com/s/OC469ei
But I would really like to do away with the subdomain if at all possible. YOURLS claims specifically that it cannot be installed in the same directory as WordPress because they both need .htaccess files.
I'm happy to use whatever method necessary to make this work, even if it's a manual process that's not as pretty as the YOURLS admin interface.
Please let me know if there's anything I need to clarify.