I've recently moved my site from IIS6 to IIS7. My site uses URL-Rewriting which I had to re-input for the switch to IIS7 as the old URL-Rewriting seems incompatible with the new server.
However, I've noticed that IIS7 doesn't automatically re-write my links. For example, if my page is called Folder1/Folder2/PageName
and I'm rewriting from the page Folder3/Page.aspx?f=PageName
, if I put a link on that page which is simply PageName2
, the browser will link to Folder3/PageName2
rather than Folder1/Folder2/PageName2
.
I've looked into this a bit, and it seems I have to create an outbound rule to fix this: http://learn.iis.net/page.aspx/657/creating-outbound-rules-for-url-rewrite-module/
But, I've got a lot of rewriting on my site, and the outbound rules will all be duplicate-reversals of my inbound rules. Therefore, is there a way I can automatically have these rules generated from my inbound rules? Or better still, is there a setting which can enable this?
Hope I've made sense! Cheers, Curt