I'm building a site template that, hopefully, will be just one single ASPX
page.
There are 10 main districts (each getting a variation of the template), and
I could easily pass that info via a querystring:
mysite.com/default.aspx?district=3
But I'd like to be able to have the URL define that:
mysite.com/district/3
I'm looking at URL rewriting and I'm not quite sure if it does what I think
I want it do to.
It looks like URL rewriting (such as ISAPIrewrite) can take the above url:
'mysite.com/district/3' and then rewrite it as the querystring:
'mysite.com/default.aspx?district=3' which my application could use.
I was wondering if there would be a method to simply have
'mysite.com/district/3' point at /default.aspx. That way I could parse the
URL directly to get the variable rather than having to grab another
querystring. Is that something URL rewriting can do?
I COULD just do the former, but I'm trying to reduce the amount of
persistent querystrings we need to maintain.
-Darrel