| ACADEMIC COMPUTING and COMMUNICATIONS CENTER | |||||||||
Short URLs | |||||||||||||||||
| Anatomy of a URL | |||||||||||||||||
|
Most people follow links, or find pages in search engines. And, once found, they bookmark the URL. For these people, it doesn't matter at all what the URL is. However, if you plan on advertising your URL in printed media, it's easier to advertise a short URL. If this is the case for you, read on. Each URL ultimately corresponds to a certain file on a certain server. The logical relationship between URLs is given by links on one or more pages. This is really independent from the physical relationship between files on a server, usually given by a hierarchical directory structure. Use the directory structure to help the site maintainer deal with files; use the link structure to help your users navigate your webfiles. Understand the difference. A simple URL (missing a few optional parts) has the form: protocol://machine/path/file
This tells the browser to contact the server, present the string path/file, and expect the server to figure out which physical file to return. Two ways to shorten the URL are:
The file part of the URL is actually optional. If it is missing, the server will check for any files named
For example, http://www.uic.edu/classes really gets you http://www.uic.edu/classes/index.shtml. |
|||||||||||||||||
| CNAMEs and webaliases | |||||||||||||||||
|
If filename defaults aren't good enough, your choice is a webalias or a CNAME.
This can be done, but is a little complicated and there are a number of restrictions:
To request a CNAME or a webalias, send email to: wwwtech@uic.edu. Be sure to include the following information, along with any questions you might have:
|
|||||||||||||||||
| Limitations | |||||||||||||||||
|
Please note that redirection using the CNAME will not work with SSL, that is, with https:// URLs. If you need encryption or Bluestem for security, you won't be able to construct URLs of the form http://CNAME/....
This is not a major deal, becuase the URLs of the form https://www.uic.edu/... will still work for your site. You just have to be careful to use www.uic.edu for URLs that point back to your site, even if you advertise your main page at http://CNAME/. |
|||||||||||||||||
| 2009-1-27 wwwtech |
|