|
24 Dec 06 - 05:39 PM (#1918371) Subject: Tech: tinyurl.com - how's it work? From: Joe Offer I noticed in Joe Hickerson's "Songfinder" column in Sing Out! Magazine, that he includes URLs for the Traditional Ballad Index at tinyurl.com, instead of at the site's location at the California State University at Fresno. So, I checked out tinyurl.com today, and I see it's a site that somehow converts lengthy URLs to short ones. So, how's it work? -Joe- |
|
24 Dec 06 - 06:26 PM (#1918401) Subject: RE: Tech: tinyurl.com - how's it work? From: GEST TinyUrl.com is an URL aliasing service which allows you to create a directory with a PHP redirect ( header("Location: http://www.the_real_URL.com/etc.htm ); ?> embedded in it. By creating the link, a PHP backend sets up the directory and the redirect. Be warned, however, that NetScape has permanently banned all URL aliasing services to avoid duplication of URLs. Others may do the same in the future. GEST Songs of Newfoundland and Labrador |
|
24 Dec 06 - 06:34 PM (#1918409) Subject: RE: Tech: tinyurl.com - how's it work? From: GUEST Wiki article |
|
24 Dec 06 - 06:48 PM (#1918419) Subject: RE: Tech: tinyurl.com - how's it work? From: GUEST Now how would I do it... Generate and store short url in database together with long url. The tiny urls point to a directory which I guess does not exist - could be handled with a custom "not found" page which looks up long url and redirects. |
|
24 Dec 06 - 06:58 PM (#1918423) Subject: RE: Tech: tinyurl.com - how's it work? From: GUEST Redirection btw can be done by sending an HTTP header to the browser. In php, you could use: header("Location: http://www.requiredurl.com/"); |
|
24 Dec 06 - 09:18 PM (#1918481) Subject: RE: Tech: tinyurl.com - how's it work? From: Stilly River Sage I use tiny url regularly and find it very useful. It has been around for a number of years, but they still stay pretty small. SRS |