locked
How to rewrite URL in windows server 2016 IIS RRS feed

  • Question

  • User-455418571 posted

    need to rewrite the URL

    FROM

    "name.ourdomain.com.kw:portnumber/apex/app?number&456service_number=123"

    TO

    "name.ourdomain.com.kw/anything"

    Friday, September 4, 2020 8:51 PM

All replies

  • User-848649084 posted

    Hi,

    You could try below URL rewrite rule:

     <rule name="rule1" stopProcessing="true">
                        <match url="(.*)" />
                        <conditions>
                            <add input="{HTTP_HOST}" pattern="^name.ourdomain.com.kw:portnumber$" />
                            <add input="{REQUEST_URI}" pattern="^/apex/app" />
                            <add input="{QUERY_STRING}" pattern="number&amp;(.*)service_number=(.*)" />
                        </conditions>
                        <action type="Redirect" url="http://name.ourdomain.com.kw/anything" appendQueryString="false" />
                    </rule>

    Monday, September 7, 2020 5:39 AM
  • User-848649084 posted

    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.

    Thursday, September 10, 2020 9:24 AM