How not to have URLs end with ".aspx"?

Topics: Developer Forum
Sep 29, 2008 at 9:31 PM

Is it possible to have pages managed by N2 not end in .aspx?

For example, I prefer going to (without .aspx) rather than

Thank you,

Sep 29, 2008 at 10:34 PM
Yes, try this in web.config (you'll need to enable wildcard mappings on IIS)

<host ...>
      <web extension="" />
Sep 30, 2008 at 4:33 PM
Excellent, thank you!
Oct 7, 2008 at 5:38 AM
Edited Oct 7, 2008 at 6:17 AM
As an advice, additionally,

you can use exceptional

Intelligenzia.UrlRewriter (total) - This is a rule based, declarative (in Web.config custom section) url redirector/filtering engine, which can use a RegEx patial matches to locate redirections.

so you can get more of that just respecting you.


url: <site>/images/big/mom
url: <site>/images/big/dad
url: <site>/images/big/<others>