An Easy Guide To Make URL Shortener Under Your Domain Name

IN Tips and trick

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.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

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.

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..

Step Three: Setup Database and MySQL settings

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

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

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.

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 on Youtube

Click to activate Offer & visit site Discount added automatically
No related entires
No related entires

Subscribe to SML Newsletter

Receive Blogging Tips & Strategies

Get WordPress Guide eBook for free in the 2nd newsletter

100% privacy. we will never spam you

  • Author Bio

  • Latest Post

Blog post by 3rdbrain

Hammad has written 3 articles.

Follow ShoutMeLoud on Twitter. Subscribe to ShoutMeLoud feed via RSS or EMAIL to receive instant updates.


Testimonials
Send Us Inquiry

Comments

  1. Ramsha says

    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

  2. Chadrack says

    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!

  3. Travis M says

    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.

  4. Sanjeev Mishra says

    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.

    • 3rdbrain says

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

  5. Robin says

    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 !

    • 3rdbrain says

      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..

  6. mittakrish says

    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!!!

  7. techprism says

    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.

    • 3rdbrain says

      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..

  8. Burhanuddin Tezabwala says

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

    • 3rdbrain says

      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..

    • 3rdbrain says

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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>