redirect problem

hhzz 21 Reputation points

I want to create a rule that satisfies the following two urls to redirect at the same time. -> ->

note: test1 and test1/test2 are dynamic

Internet Information Services
No comments
{count} votes

Accepted answer
  1. Sam Wu-MSFT 5,516 Reputation points Microsoft Vendor


    You can use the following case as a reference:

    <rule name="test" stopProcessing="true">            
         <match url="(.*)" />  
                     <add input="{REQUEST_URI}" pattern="^/([^/]+)" />  
         <action type="Redirect" url="{C:1}/" redirectType="Found" />  

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Oldest