Search Wiki:
Resource Page Description
nUrlRewriter is a ASP.NET Http Module written in managed C# code which examines incoming Http requests and applies user defined criteria which may result in a Http request being redirected or rewritten. Web pages within existing web sites are often archived or retired, however many Internet based hyperlinks may exist for such web pages. nUrlRewriter solves this problem by providing a facility which can easily redirect or rewrite such Http requests to other web site web pages or web applications. For example, a discontinued product web page may be redirected to a general product category web page. nUrlRewriter differentiates itself from other redirectors/rewriters in that nUrlRewriter also supports the IIS7 Integrated ASP.NET Pipeline, enabling nUrlRewriter to redirect/rewrite any incoming web application URL supported by the IIS7 web server, such as but not limited to native HTML applications (htm, html), classic ASP applications (asp), PHP applications (php) as well as ASP.NET (aspx) applications.

Incoming Http requests which are redirected are returned to the originating browser with a status code of either 301 (permanent) or 302 (temporary) to indicate that the requested web page has been moved to a new target URL provided to the browser. the browser will then issue a new Http request for the new URL. Http status code 301 indicates that the URL has been permanently moved and the browser should use the new URL in any new Http requests. Http status code 302 indicates that the URL has been temporarily moved and the browser should use the new URL only for the outstanding Http request.

Incoming Http requests which are rewritten, are rewritten to a different URL location within IIS. Since the originating browser is not informed of the URL rewrite, the browser URL address bar will continue to display the originating URL before the URL rewrite.

nUrlRewriter works equally as well with IIS5 and IIS6.
Last edited Mar 30 at 8:03 PM  by plippard, version 2
Comments
Glittle wrote  Apr 17 at 4:14 PM  
Hi, the documentation looks great... but difficult to use. Lots of sample text is provided, but it cannot be copied, since they are all in images. Please change the CHM file to use actual text, rather than images! Thanks!

Glittle wrote  Apr 17 at 4:22 PM  
Actually, you've provided lots of sample files as well, so text can be copied from them. Maybe just a note in the CHM reminding people.

plippard wrote  Apr 25 at 1:54 PM  
I have also posted a number of additional comments and configuration examples on my blog at http://www.sanibellogic.com/sl/blog/?cat=3

plippard wrote  Apr 25 at 2:00 PM  
nUrlRewriter uses a custom web.config configuration section, which simplifies the implementation somewhat, however the nUrlRewriter user still must learn regular expressions for effective use. nUrlRewriter also provides for the use strings as an alternative to regular expressions.

Updating...
Page view tracker