Hi,
I have created a rewrite to remove a port number from the URL, which when testing the pattern matching seems to match, but doesn't appear to work in reality.
Advice is appreciated.
1DMF.
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
I have created a rewrite to remove a port number from the URL, which when testing the pattern matching seems to match, but doesn't appear to work in reality.
Code:
<rule name="Rewrite port 4001" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{URL}" pattern="*:4001*" />
</conditions>
<action type="Rewrite" url="{C:1}{C:2}" />
</rule>
Advice is appreciated.
1DMF.
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music