nainil
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?
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?
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.
I haven't used this script myself but does exactly what you are seeking:
http://sourceforge.net/projects/lilurl/files/lilurl/
http://sourceforge.net/projects/lilurl/files/lilurl/
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?
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
Don't forget to add captcha.