Rewrite rule to make all pages end with default.aspx

Topics: Developer Forum, User Forum
Apr 26, 2007 at 4:15 PM
I am trying to see how to accomplish the following two things
with the Regex rules:
(a) I want all the incoming URLS that don't have detault.aspx
to be redirected to that URL
(b) I want the final URL - with the detault.aspx - to be reflected
in the client's browser URL text box as well.

For e.g:
I want to be processed by the filter
filter so that the request gets always sent to
this is the final url in the client browser.

or when I have a url of the form

This gets sent to
and ends up being the above in the client's browser as well.

May 3, 2007 at 7:28 PM
Edited May 3, 2007 at 7:29 PM
yes, IIRF can do this.
Check example 7 in the README file.
It shows how to define a rule that fires on the absence of a particular string in the request.

You need to use the [R] flag for browser-redirect (so the final URL appears in the browser).
Coincidentally, the [R] flag is also documented in the readme file.