2014-02-18 2 views
0

IIS 7.5에 URL 다시 쓰기 모듈을 설치하고 URL 일치의 간단한 인바운드 규칙을 수행 한 다음 사용자를 리디렉션합니다. 그러나 URL로 이동하면 전혀 리디렉션되지 않습니다. 그것은 단지 page..I 또한 웹 설정을 확인하고 내가 ..here 내가 URL 다시 쓰기가 전혀 작동하지 않습니다

<system.webServer> 
     <httpErrors> 
      <remove statusCode="404" subStatusCode="-1" /> 
      <error statusCode="404" prefixLanguageFilePath="" path="/default.aspx" responseMode="ExecuteURL" /> 
     </httpErrors> 
     <rewrite> 
      <rules> 
       <rule name="redirect" patternSyntax="ExactMatch" stopProcessing="true"> 
        <match url="http://localhost:8989/pay.htm" negate="false" /> 
        <action type="Redirect" url="http://localhost:8989" appendQueryString="false" redirectType="Temporary" /> 
       </rule> 
      </rules> 
     </rewrite> 
    </system.webServer> 

내가 뭐하는 거지가 그의 Web.config XML의 요소 systsem.webserver가 잘못 칠레 요소가 다시 한이 ​​오류가 발생로드 뭔가 잘못되었거나 모듈을 잘못 구성했습니다. 다시 설치하고 다시 시도했지만 운은 없었습니다.

답변

1

IIS 재 작성 어쨌든

로컬 호스트 작동하지 않습니다, 규칙은 원래 페이지를로드 및 리디렉션하지 않습니다 이것은 또한 손보는되지 않습니다

<rule name="redirect" stopProcessing="true"> 
    <match url="^/?pay\.htm$" /> 
    <action type="Redirect" url="http://www.domain.com" appendQueryString="false" redirectType="Temporary" /> 
</rule> 
+0

처럼 보일 것입니다. – user505210

+0

'http : // localhost : 8989/pay.htm'을 사용하고 계십니까? 내 규칙 코드로 정확히 * 시도 했습니까? –

+0

그래, http : // localhost : 8989/pay.htm으로 노력하고 있는데, ur 코드로 web.config를 업데이트했다. – user505210

관련 문제