• X

    An Easy Guide To Make URL Shortener Under Your Domain Name

    By in WordPress

    Bluehost hosting

    Being online is all about branding, and it doesn’t matter how you do it, but more people see your brand name, more they are likely to remember it. Few months back Harsh talked about su.pr URL shortener from Stumble upon and later on He shared a tutorial on How to configure Su.pr URL shortening service under your domain name. There is no downside of using Su.pr shortening service but using your own URL shortening service under your domain name is much better idea. This will give more traffic to your blog and using a good URL shortening script you can also configure it to see stats and other details.

    More over, with growing need of  short URL’s (As short URL’s are easy to share on sites like Twitter), it’s a good idea to use your own brand name. There are many online resources which let you shorten your long URL links to a compact and much shorter in letters, which are quite easier to share on social services.

    Today, I will be sharing an easy to follow tutorial for those, who would like to self host a URL shortener under their domain name. If you own a website and want to create such your own URL shortening service than here is a very easy way to do that but require some average skills, as we need to install a script. This script is known as YOURLS , its all free to use and can be use to create personal (private) or commercial (open to public) URL shortener.

    A Complete guide to create URL Shortener under your Domain Name:

    If you are accustomed with FTP, database, and making changes in your core file, you can use this tutorial on your live site. But, I would still recommend to first try it on your local installation of WordPress. If you have not installed a local PHP and MYSQL server, here are complete guide to get you started:

    Installation

    (Basic server Requirements ) – A server with PHP 5,2, MYSQL 4.1 and mod_rewrite enabled. You can use Bluehost or Hostgator Webhosting for using Yourls.

    What we will do exactly? Installing an easy to setup script to our cPanel just like we install WordPress manually.

    Step One:

    Download the zip file of the script from download page

    clip image002 thumb1 An Easy Guide To Make URL Shortener Under Your Domain Name

    Step Two: Configurations

    Open up and extract the zip file and find file includes/config-sample.php and rename it to includes/config.php Now open this renamed file in text editor like Notepad to make essential configurations.

    clip image004 thumb An Easy Guide To Make URL Shortener Under Your Domain Name

    Fields required to install the script to your database for proper get functionality includes   YOURLS_DB_USER, YOURLS_DB_PASS, YOURLS_DB_NAME, YOURLS_SITE – (These are MySQL settings which you will setup in next step)

    Note: Don’t forget to edit username and password fields in the same file, as they are needed to sign in..

    clip image006 thumb An Easy Guide To Make URL Shortener Under Your Domain Name

    Step Three: Setup Database and MySQL settings

    Now go to the cPanel home page and select MySQL Databases – and setup and new database.

    clip image008 thumb An Easy Guide To Make URL Shortener Under Your Domain Name

    Once you are done with the making new database, simply change the mentioned fields in includes/config.php as per your new setup of database and save the file.

    Step Four: Uploading files onto the server : Now select all the files unzipped earlier to the root of your hosting account or www or public_html

    Step Five: On web installation

    Once all files are uploaded, open up the link in browser as final step

    http://www.your-domain.com/admin/

    Now login with your details and enjoy your own smart URL shortener

    clip image010 thumb An Easy Guide To Make URL Shortener Under Your Domain Name

    Admin Dashboard Screenshot

    clip image012 thumb An Easy Guide To Make URL Shortener Under Your Domain Name

    Notable Features of YOURLS

    Stats Support - You can also checkout the stats for your created short links like traffic sources, location and detailed other stats.

    clip image014 thumb An Easy Guide To Make URL Shortener Under Your Domain Name

    API - to stand out with recent trends and to go fully   flexible with development.

    WordPress plugin – for full fletch integration with your websites/blog hosted on WordPress.

    Give you thoughts about benefit of using own URL shortening service?

    Subscribe to Download WordPress Guide Worth $99

    Discover more awesome articles

    Article by

    Hammad has written 3 articles.

    If you like This post, you can follow ShoutMeLoud on Twitter. Subscribe to Blogging tips via RSS or EMAIL to receive instant updates.

    { 19 comments… read them below or add one }

    Rahul

    This is very useful post for the newbie like me on wordpress.

    Reply

    3rdbrain

    For newbies better try this tool installing on your locally installed WordPress setup.. that will give you more insight on its options..

    Reply

    Ashfame

    Yeah right! I too prefer to install scripts locally before I install them on a live host.

    Reply

    Burhanuddin Tezabwala

    Yeah goodor ifyou want just a url shortner for your blog address use Pretty Link wp plugins it shows like this: yoursite.com/xyz

    Reply

    3rdbrain

    if you are happy with that tool then you should give it a try to YOURLs and experience its functionality .. moreover you can also integrate this script with its own WP Plugin..

    Reply

    techprism

    Url shortening under our own domain name is not that beneficial, as already many services from many websites do that for you.
    Instead implementing that in our own domain those external services like digg shortner when digging & twitter works for the website links.
    Otherwise those who want to implement at their website level, this is a good article for them.

    Reply

    3rdbrain

    this is somewhat a future of blogs, equipped with many tools to make their life more easier and blogging to go rock n roll :D – and I think its just a start, expect some more personalized easy to setup services in mean time..

    Reply

    Chethan

    Bro Did you mean URL like mysite.com/xyz ??????
    Then This Cool!

    Reply

    3rdbrain

    Yes.. ! Hope you like the review and tutorial..

    Reply

    mittakrish

    this post is very informative.
    it would help a lot for those who does not want to send readers out of their websites for services like url shortening!!!

    Reply

    Robin

    I am using GOCodes Wp Plugin for all my redirections. Thats simple and requires no installations.

    Using separate script may increase our time to manage it .. and your Related Posts shows great alternatives :)

    Thanks 3RDBrain !

    Reply

    3rdbrain

    You are right there are now a lot of alternatives but this thing is quite handy for large websites managed by a team. Plus, you can also start your own URL shortening service just like TinyUrl, Bit.ly and others.. Don’t forget to check its stats for individual shortened links..

    Reply

    Neeraj Kumar

    A well written tutorial ! Thanks a lot ! :)

    Reply

    3rdbrain

    Hey Neeraj ! hanks for liking the tutorial.. do share if you have setup such a URL shortner for your website..

    Reply

    Sanjeev Mishra

    YOURLS is developed by Planetozh and his contribution towards Wordpress community is really awesome and this plugin is a landmark in his recent developments. Thanks Harsh for sharing this tutorial over here.

    Reply

    Travis M

    Thanks for the article and sharing the Yourls.org stuff. I set it up and skinned it on a stand alone domain I have and one of these days will find time to integrate into my WP. Had to password protect it after it got noticed by the spambots but otherwise works great.

    Reply

    Chadrack

    I already have Pretty link installed and it’s just fine. But I’m always on the lookout for any thing that will help me enjoy more of my blogging adventure.

    Will definitely try this out!

    Reply

    Ramsha

    To Be Frank I Have already used this and there are some other plugins who are better then this and it also lessen the steps for customizations

    Reply

    Harsh Agrawal

    Ramsha do let us know which plugins are you talking about? Will help us to add more value to this post.

    Reply

    Leave a Comment

    Previous post:

    Next post:

    `