I have 2 URL redirection 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 name="al - helyek/al" enabled="true" stopProcessing="true">
                <match url="^test1/al/(.*)" />
                <action type="Redirect" url="helyek/al/{R:1}" />

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?

Thank you in advance for your help.

1 Answer 1


I found correct redirect:

<rule name="WEBHELY - helyek/WEBHELY (RootFolder)" stopProcessing="true">
    <match url="^WEBHELY/(.*)" />
        <add input="{QUERY_STRING}" pattern="(.*)?RootFolder=%2FWEBHELY(.*)" />
    <action type="Redirect" url="helyek/WEBHELY/{R:1}?RootFolder=%2Fhelyek%2FWEBHELY{C:2}" appendQueryString="false" />
<rule name="WEBHELY - helyek/WEBHELY" stopProcessing="true">
    <match url="^WEBHELY/(.*)" />
    <action type="Redirect" url="helyek/WEBHELY/{R:1}" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.