I
I
Ilya Korablev2015-08-12 14:35:10
PHP
Ilya Korablev, 2015-08-12 14:35:10

How to make a link shortener?

I want to make my own link shortener. I understand everything how to do it.
1. A link is taken that needs to be shortened.
2. It is written to the database and given a unique code (123 or hsu1)
3. To open the link, use the address example.com/123
But how to implement the last point?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2015-08-12
@aspetek

You can take a ready-made script, for example Phurl , and see how it works

Z
Zelimkhan Beltoev, 2015-08-12
@Beltoev

This is done through .htaccess. Requests for a script to redirect, which will take a link from the database and redirect

S
Saboteur, 2015-08-12
@saboteur_kiev

buy example.com
create an API to build links and use
profit links. more precisely debet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question