title: ASP.NET MVC 2 and custom httpModule precedence
body: <p>I have a custom HttpModule rewrite engine in an existing web application project that maps urls of the form</p>
  
  <p>/tom/dick/harry/.../.../...</p>
  
  <p>to a hierarchical navigation system stored in a database, ultimately resulting in a HttpContext.Current.RewritePath() call to the .aspx page that the requested path resolves to.</p>
  
  <p>I'm interested in mixing MVC in with the existing app. If the MVC code works well and provides real benefit over the code behind model, how will I handle precedence between my rewrite engine and the routetable? Is the routetable referenced before the HttpModule, after? Are both called? </p>