2017-12-15 23 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

'条件が必要アクションタイプ= "リダイレクト" url = "https://eshop.aplusprint.co.nz/aboutus/" appendQueryString = "false" /> '動作します –

答えて

0

[OK]を見つけました。

<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" を "会社のリダイレクトについて" ルール名>

関連する問題