2017-12-15 5 views
0

IIS를 사용하여 URL을 다른 URL로 리디렉션 할 수 있습니까? 예를 들어 : 나는 https://eshop.aplusprint.co.nz/product/wall-flag/IIS 301 특정 URL을 다른 특정 URL로 리디렉션

나는 ID가 새로운 URL이 변경됩니다 변경할 때 의미 하나 하나에 재 지정하고자로 리디렉션 http://www.aplusprint.co.nz/List.asp?id=58 소원을 얻었다.

나는 시험 재 작성 규칙을 만들 수 있지만

<configuration> 
<system.web> 
    <identity impersonate="true" /> 
<httpRuntime maxRequestLength="8192" /> 
</system.web> 
<system.webServer> 
    <rewrite> 
     <rules> 
      <rule name="wall_mounted_flag" patternSyntax="ExactMatch" stopProcessing="true"> 
       <match url="List.asp?id=58" /> 
       <action type="Redirect" url="https://eshop.aplusprint.co.nz/product/wall-flag/" appendQueryString="false" /> 
      </rule> 
     </rules> 
    </rewrite> 
    <httpErrors errorMode="Detailed" /> 
</system.webServer> 

누구든지 나를 도울 수 작동하지?

+0

'조건이 필요 action type = "Redirect"url = "https://eshop.aplusprint.co.nz/aboutus/"appendQueryString = "false"/> '작동합니다. –

답변

0

좋아, 찾았습니다.

<rule name="wall_mounted_flag" patternSyntax="ExactMatch" stopProcessing="true"> <match url="List.asp" /> <action type="Redirect" url="https://eshop.aplusprint.co.nz/product/wall-flag/" appendQueryString="false" /> <conditions> <add input="{QUERY_STRING}" pattern="id=58" /> </conditions> </rule>

< <= patternSyntax = "완전 일치"stopProcessing = "true"를 "우리 리디렉션 정보"규칙 이름>

관련 문제