locked
Redirecting a dynamic page to itself with different parameter. RRS feed

  • Question

  • User748555671 posted

    I am trying to redirect a dynamic page to itself with different parameter per following:

    rpmtruckrepair.com/vehicles.asp?make=Kenworth

    to:

    rpmtruckrepair.com/vehicles.asp?make=Kenworth&ShopType=Truck

    Thank you in advance

    Wednesday, May 31, 2017 7:30 PM

All replies

  • User-460007017 posted

    Hi Frankla,

    This rule could redirect rpmtruckrepair.com/vehicles.asp?make=Kenworth to rpmtruckrepair.com/vehicles.asp?make=Kenworth&ShopType=Truck:

    <rule name="redirect dynamic page" stopProcessing="true">
                        <match url="(.*)" />
                        <conditions>
                            <add input="{QUERY_STRING}" pattern="^make=Kenworth$" />
                            <add input="{URL}" pattern="^/vehicles.asp" />
                        </conditions>
                        <action type="Redirect" url="vehicles.asp?make=Kenworth&amp;ShopType=Truck" appendQueryString="false" redirectType="Temporary" />
                    </rule>

    Best Regards,

    Yuk Ding

    Thursday, June 1, 2017 8:54 AM