A rewrite engine also known as URL rewriting, is software which modifies the URLs appearance, for example:
- http://example.com/wiki/index.php?title=Page_title
is changed to:
- http://example.com/Page_title
The benefits of a rewrite engine are[1]:
- Making website URLs more user and search engine friendly
- Preventing undesired "inline linking"
- Not exposing the inner workings of a web site's address to visitors
Java and Ruby on Rails
In Java, the term "URL rewriting" sometimes describes a Web Application Server adding a session id to a URL when cookies are not supported (e.g. "index.jsp" is rewritten to "index.jsp;jsessionid=xyc" when the links are drawn in an HTML page).
Ruby on Rails has built-in URL rewriting via Routes.[2]
See also
Notes
- ^ Many of these only apply to HTTP servers whose default behavior is to map URLs to filesystem entities (i.e. files and directories); certain environments, such as many HTTP application server platforms, make this irrelevant.
- ^ Routes.
External links
Apache
IIS
Rewrite engines
Apache Software Foundation's Apache HTTP server
Microsoft's Internet Information Server (IIS)
Java 2 Platform, Enterprise Edition (J2EE) Servlet container servers (such as Apache Tomcat, Resin, Orion etc):
|