2009 - Basta!: Url rewriting mit iis, asp.net und routing engine
Daniel Fisher CTO.
MCP, MCTS, MCPD…
Mit-Gründer und Geschäftsführer von
Mit-Gründer und Vorstand der
just community e.V.
Leiter der .NET-Nieder-Rhein
Mitglied im Microsoft
Community Leader & Insider Program (CLIP)
Connected Systems Advisory Board
Usability-Guru Jakob Neilsen recommends that
URLs be chosen so that they:
Are easy to type.
Visualize the site structure.
"Hackable," allowing the user to navigate through
the site by hacking off parts of the URL.
Dynamic web pages like ASP.NET rely on
parameters as non web apps do.
Web applications user GET or POST variables
to transmit values.
Query strings are
Not soooooo nice
Hard to remember
Look like parameters
Internally they are but for instance looking at a categories
products is not seen as an action by the user…
IIS URL Rewrite Module updates ASP.NET bugs
"~" is resolved incorrectly when using URL rewriting
SiteMap.CurrentNode property returns null when sitemap
contains virtual URLs
Only if the machine has .NET Framework version 3.5
SP1 or higher.
If .NET is installed after URL Rewrite re-install or
Code your own matching logic
Code your own rule provider
Code your own replace mechanizm
IIS 7 is configured to not authenticate
content that is not handled internally
A virtual URL points to an non-existent file
You need to enable URL Authentication on rewriten
A) Change preCondition of UrlAuthenticationModule
B) Call Authentication yourself
URL rewriting is used to
manipulate URL paths
before the request is
handled by the Web
The URL-rewriting module
does not know anything
about what handler will
eventually process the
In addition, the actual
request handler might not
know that the URL has
ASP.NET routing is used
to dispatch a request to a
handler based on the
requested URL path.
As opposed to URL
rewriting, the routing
component knows about
handlers and selects the
handler that should
generate a response for
the requested URL.
You can think of ASP.NET
routing as an advanced
The presentation content is provided for your personal information only. Any commercial or non-commercial use of the presentation in full or of any text or graphics
requires a license from copyright owner. This presentation is protected by the German Copyright Act, EU copyright regulations and international treaties.