Short Uniform Resource Locator (URL) - Is usually a generated "short" URL which addresses a normal "long" URL to make it more readable and/or short.
Questions tagged [short-url]
135 questions
118
votes
4 answers
How do short URLs services work?
How do services like TinyURL or Metamark work?
Do they simply associate the tiny URL key with a [virtual?] web page which merely provide an "HTTP redirect" to the original URL? or is there more "magic" to it ?
[original wording]
I often use URL…

Nathan Campos
- 28,769
- 59
- 194
- 300
53
votes
14 answers
What's the best way to create a short hash, similar to what tiny Url does?
I'm currently using MD5 hashes but I would like to find something that will create a shorter hash that uses just [a-z][A-Z][0-9]. It only needs to be around 5-10 characters long.
Is there something out there that already does this?
Update 1:
I like…

Arron S
- 5,511
- 7
- 50
- 57
46
votes
12 answers
How to make unique short URL with Python?
How can I make unique URL in Python a la https://i.stack.imgur.com/turb6.jpg or http://tumblr.com/xzh3bi25y
When using uuid from python I get a very large one. I want something shorter for URLs.

Esteban Feldman
- 3,288
- 6
- 32
- 31
25
votes
4 answers
How to implement a short URL like the URLs in Twitter?
If there is a long url, I want to generate a short URL like those in Twitter. Is there some way to implement this in Ruby?

ywenbo
- 3,051
- 6
- 31
- 46
21
votes
7 answers
How do I reverse a t.co URL to the originating Tweet?
I'm going through our site analytics, and have a load of t.co URLs which were referrers to a promotion we were doing. I'm trying to figure out if there is a way to reverse those back to the original tweet where they originated, through the Twitter…

Greg Hinch
- 807
- 2
- 8
- 23
10
votes
5 answers
Making a short URL similar to TinyURL.com
I'm building a new web app that has a requirement to generate an internal short URL to be used in the future for users to easily get back to a specific page which has a very long URL. My initial thoughts are to store a number in a database and…

ShawnCBerg
- 594
- 2
- 7
- 27
9
votes
5 answers
PHP random URL names (short URL)
After using sites like JSFiddle I noticed that they auto generate a random and unique URL made up of various upper and lower case characters.
We could benefit from this for our booking pages. How is it done?

Walrus
- 19,801
- 35
- 121
- 199
7
votes
2 answers
When creating a short url service, is 302 temporary redirect the best way to go?
When creating a short URL service for URLs on the same domain, should we be using a 302 redirect?
Full URL structure: example.com/gig/{id}/gig-full-name-slug
Short URL structure: example.com/g/{base64id}
We're using asp.net mvc3, if there's any…

Ben Cull
- 9,434
- 7
- 43
- 38
6
votes
3 answers
file_get_contents() for short urls
file_get_contents() doesn't read data for short urls
Example:
http://wp.me/pbZy8-1WM,
http://bit.ly/d00E2C
Please help me in handle this. OR Is there any CURL function to handle above links?

praneeth
- 535
- 1
- 6
- 17
5
votes
1 answer
Short url or alias for deployed application in tomcat 6
I have a web application project which is deployed in tomcat 6.
I can access my application using the url:
http://localhost:8082/MyApplication
I also wan't to be able to access this application by another url like:
…

Abhishek
- 243
- 5
- 11
5
votes
1 answer
Create short permalinks similar to Stack Overflow's "short permalink to this question"
I think I might already understand how this works, but wanted to be sure.
I am in the process of defining the routes for a new ASP.NET MVC application. I'd like to create short permalinks similar to Stack Overflow's short permalink to this question:…

ahsteele
- 26,243
- 28
- 134
- 248
5
votes
3 answers
Change URL Address make short in PHP
I have Url as:
localhost/ab/directory.php?id=200
id=200 is jenny id member
how to change it to
localhost/ab/jenny
is possible?
Thanks

Iwan
- 51
- 1
- 1
- 2
5
votes
1 answer
Youtu.be URLs no longer equivalent with youtube.com URLs
I have made about 20 YouTube videos each producing an URL on the form www.youtu.be/… that was equivalent to the same URL but with www.youtube.com/….
I produced QR codes based on the former URLs and have published these in my book which was…

user2232777
- 51
- 1
5
votes
6 answers
CRC32 to make short URL for web
I am trying to understand crc32 to generate the unique url for web page.
If we use the crc32, what is the maximum number of urls can be used so that we can avoid duplicates?
What could be the approximative string length to keep the checksum to be…
user90150
4
votes
3 answers
Implement short urls (tinyurls) for twitter in c#?
how do you convert full(long) urls into short urls(like tinyurls) in C# for twitter? I imagine this is probably very simple with the right api. Does anyone know of a good api for doing this?

Edward
- 7,346
- 8
- 62
- 123