IIS replacing multiple forward slashes in a URLRSS

2 replies

Last post Mar 04, 2020 02:46 AM by Jalpa Panchal

  • IIS replacing multiple forward slashes in a URL

    Feb 05, 2020 02:36 PM|PrachiS798|LINK

    We are using IIS version 10. An application uses multiple forward slashes in it's relative URI for the file location. Example:

    /alfresco/service/wps/mail/integration/rename/workspace://SpacesStore/5fbc83ec?alf_ticket=TICKET_1234.

    The IIS combines multiple forward slashes into a single forward slash when matching URI to file location.

    However, this breaks the address of the file location in the application.

    Is there a way to stop IIS from combining multiple forward slashes into a single one?

    Many thanks

  • Re: IIS replacing multiple forward slashes in a URL

    Feb 06, 2020 06:30 AM|Jalpa Panchal|LINK

    Hi Prachi,

    You could try to use the IIS URL rewrite rule encodes the URL by using it. Could you please share which kind of application you are using?

    For that first, you need to install the URL rewrite extension iis. you could install it by using the web platform installer or by using below link:

    https://www.iis.net/downloads/microsoft/url-rewrite

    below is the example about how you could encode url:

     <rule name="rule1" stopProcessing="true">
                        <match url="(.*)" />
                        <action type="Redirect" url="{UrlEncode:{R:1}}" />
                    </rule>

    you could also refer this below link:

    https://docs.microsoft.com/en-us/outlook/troubleshoot/email-messages/url-multiple-slashes-become-single-slash

    Regards,

    Jalpa

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
  • Re: IIS replacing multiple forward slashes in a URL

    Mar 04, 2020 02:46 AM|Jalpa Panchal|LINK

    Hi,

    Is your issue solved?

    If your issue is solved then I request you to mark the helpful suggestion as an answer. This will help other people who face the same issue.

    If your issue still exists then try to refer the solution given by the community members.

    If then also you have any further questions then let us know about it.

    We will try to provide further suggestions to solve the issue.

    Thanks for your understanding.

    Regards

    Jalpa.

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.