Answer the question
In order to leave comments, you need to log in
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
You can take a ready-made script, for example Phurl , and see how it works
This is done through .htaccess. Requests for a script to redirect, which will take a link from the database and redirect
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question