Link to home
Start Free TrialLog in
Avatar of nainil
nainilFlag for United States of America

asked on

How do I create a site similar to TinyURL using Apache ?

Hi,

I want users to visit my site, provide a LONG URL and my site should convert it to a short URL. How do I accomplish it using Apache?
Avatar of nwtechdesk
nwtechdesk
Flag of United States of America image

You will need a database.  Users will enter the long url which the database will store along with a 2nd field which is a randomly generated short text.  When users click on the short link they are directed briefly to your site, the database runs quick lookup and then redirects to the actual site.
Avatar of webjinks
webjinks

I haven't used this script myself but does exactly what you are seeking:
http://sourceforge.net/projects/lilurl/files/lilurl/
Avatar of nainil

ASKER

To webjinks:

It seems the project has been out-of-sync for a while. I thought there is no need for MySQL as all of this could be done through Mod-ReWrite. Any comments?
ASKER CERTIFIED SOLUTION
Avatar of webjinks
webjinks

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Budi Santoso
The easiest one is creating script to create folder with short name input contained with index.html that redirecting to long url.
Don't forget to add captcha.