0% found this document useful (0 votes)
50 views3 pages

Interview Questions Concepts

A rewrite engine modifies URLs to make them more user-friendly and improve search engine optimization. It changes long URLs containing query strings to shorter, descriptive URLs. For example, it can change "http://www.example.com/Blogs/Posts.php?Year=2006&Month=12&Day=10" to "http://www.example.com/Blogs/2006/12/10/". URL redirection makes web pages available under multiple URLs. It is used when domains change or merge sites. Redirecting outdated URLs ensures links and search engines find the correct updated location. URL redirection can also log outgoing links by redirecting through the original website, though it adds a delay.

Uploaded by

zinxrose
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views3 pages

Interview Questions Concepts

A rewrite engine modifies URLs to make them more user-friendly and improve search engine optimization. It changes long URLs containing query strings to shorter, descriptive URLs. For example, it can change "http://www.example.com/Blogs/Posts.php?Year=2006&Month=12&Day=10" to "http://www.example.com/Blogs/2006/12/10/". URL redirection makes web pages available under multiple URLs. It is used when domains change or merge sites. Redirecting outdated URLs ensures links and search engines find the correct updated location. URL redirection can also log outgoing links by redirecting through the original website, though it adds a delay.

Uploaded by

zinxrose
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Rewrite engine - URL Rewriting in ASP.NET http://msdn.microsoft.

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/

Another example might be changing

http://example.com/wiki/index.php?title=Page_title

to

http://example.com/Page_title

The benefits of a rewrite engine are[1]:

 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:

Which is a month and which is a day?


http://www.example.com/Blogs/2006/12/10/
The query like that is more useful than:
http://www.example.com/Blogs/Posts.php?Year=2006&Month=12&Day=10

URL redirection http://en.wikipedia.org/wiki/URL_redirection


URL redirection, also called URL forwarding, URL shortener, domain redirection and domain
forwarding, is a technique on the World Wide Web for making a web page available under many URLs.

There are several reasons to use URL redirection:

[edit] Similar domain names

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.

[edit] Moving a site to a new domain

A web page may be redirected for several reasons:

 A web site might need to change its domain name.


 An author might move his or her pages to a new domain.
 Two web sites might merge.

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.

[edit] Logging outgoing links

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.

You might also like