I have 2 URL redirection rules:
<rewrite>
<rules>
<clear />
<rule name="al - helyek/al (kieg)" enabled="true" stopProcessing="true">
<match url="^test1/al/(.*)RootFolder=%2Ftest1(.*)" />
<action type="Redirect" url="helyek/al/{R:1}RootFolder=%2Fhelyek{R:2}" />
</rule>
<rule name="al - helyek/al" enabled="true" stopProcessing="true">
<match url="^test1/al/(.*)" />
<action type="Redirect" url="helyek/al/{R:1}" />
</rule>
</rules>
</rewrite>
But the first doesn't work, only the second.
Test URL: http://test:29001/test1/al/Megosztott%20dokumentumok/Forms/AllItems.aspx?RootFolder=%2Ftest1%2Fal%2FMegosztott%20dokumentumok%2FTeszt&FolderCTID=0x01200077BA4D1F1CDCF3498096871FD748FB37&View=%7B70C95A37%2D4FE1%2D4A60%2DA100%2D61E529A1DB56%7D
This is a SharePoint Site Collection.
What could be the problem?