Skip to content

Create your own link shortener with YOURLS

January 14, 2018
Create your own link shortener with YOURLS.

In this post we will show you how you can create your own link shortener, in an easy and too simple way. ENTERS!



Have you heard of or Well, if you are a gamer or someone who downloads a lot of content online, perhaps you do know them, and they are the most popular link shorteners in the world, with more than 9 million daily clicks. We want to tell you a secret!: our link shortener (Master Coria URL Shortener) is created with YOURLS algorithms, but we are not lying, we receive a few hundred clicks a day, just.

But hey, for someone who does not know what a link shortener is, we always put the fundamental question on the table:

What is a link shortener?

A URL shortener is software that allows you to shorten the parameters of a URL. With this, it is possible to encode a URL making it smaller so that it is more manageable and easy to share and remember. Wikipedia.

How to create my own shortener with YOURLS?

YOURLS is the acronym for Your ORwn Url Shortener, and in our opinion, it is the best free web software to create this type of project. Well, let's get to the point, create your own shortener !:

  1. First, you have to download the web software from your official website (go to the bottom of the page, in the "Download" section [it's on GitHub, download the latest version]).
  2. Then, you will have to upload YOURLS files to the server you want (I recommend that it be first in a test and not visible to the public).

  3. Rewrite "user / sample-config.php" to "config.php".

  4. Now, open that file you renamed.

We recommend you:  Over 1,000 free programming video tutorials

Now, let's go with the good stuff. You will have to edit the most important aspects of the shortener:

4.1: Fill in the database, MySQL, and site URL information.

4.2: Now, in TimeZone you will have to put the GMT number of your region. In my case it is -6.

4.3: Your language; download it from here and put its corresponding name.

4.4: In the Unique URLs section I recommend leaving true.

4.5: YOURLS private, true.

4.6: The secret cookie; generate it from here.

4.7: Generate the users and passwords, you can add as many as you want.

4.8: EYE: YOURLS Convert; choose only one and do not change it again.

4.9: Define reserved words, these are the ones that cannot be used in the URLs that are generated. Ex: if you put «fuck», then someone cannot generate « fuck«.

  1. When we mentioned point 4.1, you should have already created your database in your hosting panel. Otherwise, create it and write down those settings in step 4.1.
  • NOW, access your administration panel: admin. READY!

  • Get motivated !: images of this magnificent software




    Note: the links contained here are shortened using our link shortener (Master Coria URL Shortener).

    Doubts questions?
    I hope I have helped you and I hope you are done with the post. If you don't understand something, contact our team using the floating chat (located in the lower right part of your screen) to leave us your question.

    You can see our most recent posts on our page start from the blog. Like us on our Facebook page so you don't miss any news.