How to Create Your Own Link Shortening Service via Public Link Creation

Link shortening provides a number of key benefits to your website. It can result in improved visibility on search engines, as well as links that look cleaner and more trustworthy. However, a shortening tool like Pretty Links doesn’t have to be used only for your own links.

In fact, you can set up your own link shortening service in a matter of minutes. This will enable users to create pretty links with your domain name, straight from your website.

Providing this type of service can help you increase your brand's visibility, and gives users more reason to stay on your site rather than leaving them to use an external tool.

In this post, we’ll talk about why you might want to enable visitors to create their own shortened links. We’ll also show you how to set this up using the Pretty Links plugin. Let’s get started!

Why You Might Want to Offer a Link Shortening Service

Public Link Creation is a feature offered by the Pretty Links plugin, which enables you to implement a link shortening service on your site. This effectively lets you share the functionality of Pretty Links with your users, enabling them to create concise links using your domain name.

What's more, this feature has a number of interesting possible uses. First and foremost, it lets you create your very own link shortening website, similar to bit.ly or TinyURL.

You could also provide this service as an additional tool to your visitors, alongside your other content. This technique helps to build brand awareness, as people will be able to share links that use your domain name.

You could also use this feature to create an internal link shortener for your business. For example, imagine that you run an affiliate program, and you want all employees or partners to use the same branded links. With Public Link Creation, you can maintain consistent link branding across your entire business, while helping your collaborators create beautified links in the process.

How to Create Your Own Link Shortening Service via Public Link Creation (In 3 Steps)

Now that we've outlined the benefits, we'll take a look at how you can use Public Link Creation to create your own link shortening service in three steps.

Step 1: Activate the Public Link Creation Feature

After you've downloaded and installed the Pretty Links plugin, you'll need to activate Public Link Creation. You can do this by navigating to Pretty Links > Options in your admin dashboard:

The Pretty Links Options screen.

Once on the Options page, open up the Public tab:

The Public tab in the Pretty Links Options, showing a single option.

Here you'll initially see one option, labeled Enable Public Links. All you need to do is tick this checkbox. Another option will appear, which we'll look at later on:

The Enable Public Links option selected.

For now, you can save your changes. Public Link Creation will now be available for you to use, so next you'll need to add the feature to your site.

Step 2: Add the Link Shortening Tool to Your Site

There are two ways you can add your link shortening tool to your website. First, you can use the Create a Short URL widget (under Appearance > Widgets):

The Create a Short Link widget in the Widgets screen.

Once you add this element to a sidebar or footer, you'll be able to customize the text that's displayed, select which redirect type the created links should use, and decide if the resulting links should be tracked. You also have the option of setting a link group, which will add all links created with the tool to one organized category:

Configuring the Create a Short URL widget.

After you save your changes, you can check out your site to see the tool in action:

The link shortening widget in a sidebar.

If you don't want your link shortening tool placed in a sidebar or footer, you can also add this feature using a shortcode. This is a small piece of code that you can add to any post or page, which will generate your link shortener on the front end of your site.

In this case, the shortcode you'll need to use is prli_create_form (encased in brackets). Simply paste in this shortcode wherever you want the shortener tool to appear:

The Public Link Creation shortcode in the text editor.

When you view the page, you'll see that the shortcode has been replaced with the actual feature:

The link shortener added to a page.

Once you've placed the shortener where you want it to go, you're nearly done. All you need now is a way to deliver the shortened links to your users.

Step 3: Set Up a Link Display Page

When someone uses your link shortener, they will be shown the resulting pretty link on a specially designed Link Display Page. Pretty Links provides a default option that you can use without any additional configuration, which looks like this:

The default Link Display Page.

However, you might want to create your own custom page for this purpose. To do that, return to Pretty Links > Options and open the Public tab again. Here, you'll see the Use Display Page option, which you should enable:

The Use Display Page option selected.

You'll now be able to specify a page that you want to use to display your links. First, enter the full URL for the page in question, and save your changes. After that, you just need to add another shortcode to the page itself.

Open up the page you specified, and add the following shortcode wherever you want: prli_create_display (again, encased in brackets). This shortcode will only display the shortened link, so feel free to add more content around it for context.

Save your page, then try it out yourself by shortening a link and viewing the results on your custom display page:

A custom link display page with a shortened link.

With that, you've successfully set up your own link shortening service!

Conclusion

Pretty Links isn't just useful for beautifying your own links. In fact, anybody can create their own link shortening service using this plugin, by enabling the Public Link Creation feature. This lets your users easily create pretty links based on your domain.

In this article, we’ve shown you the process for using Pretty Links to create your own link shortening service. You’ll just need to follow these steps:

  1. Activate the public link creation feature.
  2. Add the link shortening tool to your site.
  3. Set up a link display page.

Do you have any questions about how to run your own link shortening service? Let us know in the comments section below!

Affiliate Link Disclosure

Categories: Pretty Links
About John Hughes

John is a blogging addict, WordPress fanatic, and staff writer.

Comments





3 Comments

    Kingsley Monday

    February 15, 2021

    I want to use for my company

    Evans kiptoo

    April 2, 2021

    I want to use for my company

    yes

    April 28, 2021

    I want to use for my company