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 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.and later on He shared a tutorial on
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:
What we will do exactly? Installing an easy to setup script to our cPanel just like we install WordPress manually.
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
Now login with your details and enjoy your own smart URL shortener
Admin Dashboard Screenshot
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?