Interview Questions Concepts
Interview Questions Concepts
com/en-
us/library/ms972974.aspx
A rewrite engine is software that modifies a web URL's appearance (URL rewriting). Rewritten URL's
(sometimes known as short or fancy URL's) are used to provide shorter and more relevant-looking links
to web pages. The technique adds a degree of separation between the files used to generate a web page
and the URL that is presented to the world.
This URL contains query string parameters that encode blog entry dates
http://www.example.com/Blogs/Posts.php?Year=2006&Month=12&Day=10
but can be altered to give the user a clear idea of what he or she is going to see
http://www.example.com/Blogs/2006/12/10/
The second address also allows the user to change the URL to see all postings available in
December, simply by removing the text encoding the day '10', and thereby saving having to
navigate the GUI.
http://www.example.com/Blogs/2006/12/
http://example.com/wiki/index.php?title=Page_title
to
http://example.com/Page_title
Making website URLs more descriptive to improve user-friendliness and search engine
optimization
Preventing undesired "inline linking"
Not exposing the inner workings of a web site's address to visitors
The URLs of pages on the web site can be kept even if the underlying technology used to
serve them is changed
Known drawbacks:
In some cases, for example if user modifies URL to get specified data the rewrite engine
may hinder from querying. See below example:
A web browser user might mis-type a URL -- for example, "exampel.com" and "exmaple.com".
Organizations often register these "mis-spelled" domains and re-direct them to the "correct"
location: example.com. For example: the addresses example.com and example.net could both
redirect to a single domain, or web page, such as example.org. This technique is often used to
"reserve" other TLDs with the same name, or make it easier for a true ".edu" or ".net" to redirect
to a more recognizable ".com" domain.
With URL redirects, incoming links to an outdated URL can be sent to the correct location.
These links might be from other sites that have not realized that there is a change or from
bookmarks/favorites that users have saved in their browsers.
The same applies to search engines. They often have the older/outdated domain names and links
in their database and will send search users to these old URLs. By using a "moved permanently"
redirect to the new URL, visitors will still end at the correct page. Also, in the next search engine
pass, the search engine should detect and use the newer URL.
The access logs of most web servers keep detailed information about from where visitors came
and how they browsed the hosted site. They do not, however, log which links visitors left by.
This is because the visitor's browser has no need to communicate with the original server when
the visitor clicks on an outgoing link.
This information can be captured in several ways. One way involves URL redirection. Instead of
sending the visitor straight to the other site, links on the site can direct to a URL on the original
website's domain that automatically redirects to the real target. This technique bears the
downside of the delay caused by the additional request to the original website's server. As this
added request will leave a trace in the server log, revealing exactly which link was followed, it
can also be a privacy issue.[1]
The same technique is also used by some corporate websites to implement a statement that the
subsequent content is at another site, and therefore not necessarily affiliated with the corporation.
In such scenarios, displaying the warning causes an additional delay.