2013-01-24 4 views
0

누군가가 리디렉션 규칙을 지원할 수 있습니까?web.config의 특정 리디렉션/다시 쓰기 규칙

"new-jersey"에 대한 URL에서 "newjersey"와 같은 단어를 교환하고 싶습니다.

web.config를 통해이 작업을 수행하는 방법에 대한 제안 사항이 있으면 즉시 처리해야합니다. 티아!

<rule name="Redirect {1}/newjersey" stopProcessing="true"> 
<match url="^([^/]+)/newjersey$" ignoreCase="false" /> 
<conditions trackAllCaptures="true"> 
    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> 
    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> 
</conditions> 
<action type="Redirect" url="/{R:1}/new-jersey" appendQueryString="false" /> 

:

답변

0

는 다음을 통해 작업을 얻었다