We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

View Complete Thread
  • Re: How to rewrite URL in windows server 2016 IIS

    Sep 07, 2020 05:39 AM|Jalpa Panchal|LINK


    You could try below URL rewrite rule:

     <rule name="rule1" stopProcessing="true">
                        <match url="(.*)" />
                            <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=(.*)" />
                        <action type="Redirect" url="http://name.ourdomain.com.kw/anything" appendQueryString="false" />

    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.