Few months back I 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 I wrote a tutorial on
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.
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.
To implement this in your main website hosting, you should try it on your local wordpress installation.
Step by Step guide to create your own URL shortening service
(Requirements – a server with PHP 4.3, MYSQL 4.1 and mod_rewrite enabled.)
Example Webhost : Dreamhost, ,
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?
Subscribe Updates, Its FREE!