Hi
I have searched all over for a solution to this, but I seem to find the opposite scenario only.
My scenario: when customer enters http://localhost/great-claim-service/ the url should be rewritten to http://localhost/aboutUs.html?daCollapse=aboutUs1 internally.
I have the following rule in IIS7 (one among many):
<rule name="rewrite 10" patternSyntax="ExactMatch" stopProcessing="true">
<match url="great-claim-service/" />
<action type="Rewrite" url="aboutUs.html?daCollapse=aboutUs1" appendQueryString="true" />
</rule>
which doesnt work.
I have tried without the appendQueryString="true", and also adding a condition:
<conditions>
<add input="{QUERY_STRING}" pattern="daCollapse=aboutUs1" />
</conditions>
Both dont work. From what I am reading up on the iis.net forums, both these variations are not correct, but for the life of me I cant figure out the correct rule for this.
Enabled tracing, it doesnt help. Simply shows that the rule didnt match (duh!)
What is the correct rule in this scenario? I dont mind using a rewrite map, I plan to use it in the future anyway.