URL Shorteners: Creating a Customized Short URL

URL Shorteners: Creating a Customized Short URL

URL shorteners are increasing in popularity. This is because increasing numbers of people want to create a short URL for Twitter and other micro blogging and social networking sites while maintaining visibility of their brand or blog name. Several forward-thinking companies and website owners are succeeding in getting their shortened URLs recognized synonymously with their full domain names.

Customized Short URL

They have achieved this by creating a customized short URL by means of their own or certain commercial URL shorteners. Here at TechLila we have used such methods to generate the short URL techli.la which we can use when longer URLs would be changed to a random set of figures. By doing this, we can retain our branding in Twitter links and other micro blogging systems where our brand would otherwise not have been visible.

Here are some of the benefits of using URL shorteners that help you maintain your branding in the shortened version.

  • Customized short URLs not only help you promote your brand but are also less liable to be mistyped. TinyUrl provides randomly generated names that are difficult to remember and easily mistyped.
  • The URL looks cool and related to your business: it can also contain the important elements of your full domain name.
  • They maintain your branding in tweets and other micro-blogging posts where your URL would otherwise be a meaningless combination of letters and numbers.
  • Because they are open source, such customizable URL shorteners are free and are more likely to endure than commercial services, many of which have disappeared.
  • Although free, some such services can provide traffic details relating to the shortened URL.
  • When you shorten a URL using commercial services such as TinyUrl, some networks such as schools and colleges will block them. That is because they are known ways to hide the URLs of pornographic, online gambling and other illegal and unsavory websites.

Here is a review of two of these currently being used to create a customized short URL for Twitter or any other micro-blogging services: YOURLS and Bit.ly.

A. Using the Bit.ly Method

Bit.ly enables you to point short domain names of your choice to your regular website. You can choose a custom short name when you use this method.

1. Choose Your Short Domain Name

First choose a small URL: you can use your favorite domain finder for this such as Domainsbot or Domainr. Let’s say you have a site connected with the European Union or currencies. Using Domainr we found this domain available: euro.ec – the screenshot below shows that is was available at the time.

Choose Short Domain

Once you have found a domain you must first register it using a service such as GoDaddy, gandi.net or ENOM. It is important that the name you select is less than 15 characters, or it will not work with bit.ly.

2. Register With Bit.ly and Register the DNS Host

Go to the Bit.ly website and register for the Pro beta account – this is free to join and enables you to use your own short URL.

Just like any other domain name, you have to register the domain name to point to a hosting service. The vast majority of domain name providers, such as GoDaddy, gandi.net or ENOM, make this very easy to do, so follow the instructions on the site you use.

With GoDaddy, for example, look for the ‘A Record’ (Address Record) under the tab marked ‘Total DNS.’ This record maps the domain name to a specific IP address. Each domain name service can handle this in a different way, but if you have any problems the support will keep you right.

With GoDaddy, you find the appropriate box, add the DNS record and enter the Bit.ly IP address in the box provided. The IP address to use is IP 168.143.174.97.

A few people are unsure about this part, so contact GoDaddy support, or the support service of the domain name registration service you have used, and they will make sure you do it correctly. There is, however, plenty information on the site on how to do this.

3. Site Verification

Go to your Bit.ly Pro account and enter the short URL of your blog (the shortened version). Then follow instructions to verify ownership of the blog or website. Now, any links shortened from Bit.ly will be converted to the custom short URL you have entered. Any URL that you shorten will utilize the customized shortened domain name with your branding.

4. Redirect Root Domain of Custom Short URLs

In Bit.ly Pro there is no such feature to redirect root domain of custom short URL to homepage of main website/blog, using simple .htaccess trick you can do that. Point the nameservers of short URL to your existing web hosting service. Add your new shortened domain as an add-on domain in your hosting account. Create a file called .htaccess and then add following code in it:

RewriteEngine on
RewriteRule ^/?$ http://www.techlila.com [L]
RewriteRule ^(.*)$ http://bit.ly/$1 [R=301,NC]

Replace “http://www.techlila.com” with your main website/blog URL and save the file. Also using .httacess you can create your own custom short URLs. We’re using custom short URL http://techli.la/fb to redirect users to our Facebook page. Instead of destination URL (for example https://www.facebook.com/techlila you can use Bit.ly short link (the bit after http://bit.ly/ for example WXctUJ) as well.

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^fb$ https://www.facebook.com/techlila [L]
RewriteRule ^feed$ WXctUJ [L]

RewriteRule ^/?$ http://www.techlila.com [L]
RewriteRule ^(.*)$ http://bit.ly/$1 [R=301,NC]

B. YOURLS: Your Own URL Shortener

YOURLS is a set of PHP scripts that not only allow you to shorten a URL of your own, but also enable you to offer your own URL shortening service without relying on a third party service. You can use it to properly brand your URLs so that they can be recognized as belonging to your website or business. Here’s how:

  • a) Download the YOURLs source code to your computer.
  • b) Upload it to the main root directory of your blog or website. The easiest way is to use free ftp software such as Coreftp.
  • c) Download the plugin as a zip file from the YOURLS website – simply Google YOURLS and you will see it. Upload the plugin to your WordPress blog and activate it.
  • d) Enter the file path to the YOURS config.php file in the box that opens when you activate the plugin.

You can now easily generate a short URL without depending on any external third party to maintain the short URL.

There is also a version known as YOUR-Wordpress-to-Twitter that acts as a bridge between YOURLS and your blog. Whenever you publish a new post, YOURLS generates a short URL for it. Automatically tweet a post with short URL feature is disabled in latest version.

C. Using YOURLS to Customize a Short URL

  • a) Upload the source code as above.
  • b) Select and register a short URL as described above for the Bit.ly method. Point the new DNS addresses your existing web hosting service, and then use your new shortened domain as an add-on domain to your main domain. This is easily done in CPanel.
  • c) Create placeholder site in the root directory of your new short-name domain.
  • d) On CPanel, create a new MySQL database. Open the /user/config-same.php file in the YOURL source code with your file editor and add the MySQL database data (username, password, DB-host, etc as requested). Save and rename the file /user/config.php
  • e) Complete the installation by accessing http://yoursite.com/admin and following the instructions.

Summary of URL Shorteners

URL shorteners such as YOURLS can convert long and complex domain names into short versions. When used in combination with the Bit.ly or YOURLS method to shorten a URL, your final short URL will be produced in a form that promotes your branding. You can select your own final short URL and have it registered so that only you can use it.

URL shorteners are not only fun to use, but they can improve brand recognition. They look good and maintain your brand visibility even in Twitter tweets and other micro blogging systems where a longer URL would automatically be changed to a shorter unrecognizable form.

Comments

  1. says

    Very informative post. Having a customized short URL will definitely helps in branding, especially considering the number of people sharing posts on twitter and other social media sites. I am planning to get one for my website :)
    Rojish recently posted – Is HTC One THE One?My Profile

  2. says

    I have a gripe with URL shorteners. I feel like they’re ruining the web, yet at the same time, they help with tweets and other social purposes.

    What happens if Bitly were to disappear? A good majority of the web would die because of dead links.

    What would have been better, would be to have a self-hosted solution that is running on a secure codebase. I did that for one of my sites so that I don’t have to rely on anyone else.
    Jonathan recently posted – Gravity Forms: A Flexible, Easy, and Customizable WordPress Contact Form PluginMy Profile

  3. says

    Hi Rajesh,

    I am also in favor of short URL because firstly the short URLs are easy to remember in long URLs if any word is missed we couldn’t able to found required page so it is always beneficial to have short URLs.

    • says

      Yeah we’ve to host it on our web server, so server downtime can be an issue. Also it’s an open source script and they release updates so while updating you can face some problems.

  4. Julidarma says

    I thinks choosing the short domain name is the best way to get short url. Short domain name is easy to remember and very useful in branding.

  5. says

    Perhaps you forget to understand the power of wordpress, this feature is always available with you if you are using jetpack by the creator of wordpress ie automatic, they will create a short link of all your urls, It is us who prefer keyword based url to increase the link juice of our webpages.

    Am i right ?
    rakesh kumar recently posted – 7 Best Lawyer WordPress Theme Ever DesignedMy Profile

    • says

      But what about brand? Using YOURLS or using bit.ly you can use your own short URL, here we’re using techli.la short URL. Read the article carefully you’ll get what I mean :)

  6. Lee says

    Hi
    This has really interested me I must be one of the few who didn’t realise you could shorten urls. I can see how handy these would be for social sites I have twitter and it has always been a pain putting my URL in. Going to go for this one.

    So thanks for heads up lee
    Lee recently posted – Funny Bucket List IdeasMy Profile

  7. David says

    Very informative post. This has really interested me I must be one of the few who didn’t realise you could shorten urls. I can see how handy these would be for social sites I have twitter and it has always been a pain putting my URL in. Going to go for this one.

  8. Dan says

    This one’s good and has plenty of advanced options:

    http://kfc.io

    – multiple long urls
    – custom name url
    – url password
    – expiry
    – limited number of url uses
    – save to folders
    – private or public url
    – QR code
    – API

 Comment Policy

Your words are your own, so be nice and helpful if you can. Please, only use your REAL NAME, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please. You can wrap code in [lang-name][/lang-name] tags.


Tell us what you're thinking...

If you want a picture to show with your comment, then get Gravatar!

CommentLuv badge