2011-09-13 12 views
4

메신저를 쿼리 문자열의 가치를 ... 지금까지 내가 규칙을 장난 한이 하나7 URL 재 작성을 IIS -이 URL에서 rewitre하려고

/VehicleAdvert/tella/Friend/285584 

/Search/VehicleDetails.aspx?vehicle=285584 

<!-- Tell a Friend --> 
<rule name="Tell a Friend" stopProcessing="true"> 
    <match url="^.*(?:Search/VehicleDetails.aspx).*$" /> 
    <conditions> 
    <add input="{QUERY_STRING}" pattern="vehicle=.*" /> 
    </conditions> 
    <action type="Redirect" url="/VehicleAdvert/tella/Friend" redirectType="Permanent" appendQueryString="true" /> 
</rule> 

내가 돌아올 URL은 /VehicleAdvert/tella/Friend?vehicle=285584

입니다 작업을 나던하는이 ...이

어떤 인스턴트 메신저 ->/VehicleAdvert/tella/Friend/285584

아무도 내가 잘못 가고있는 곳을 제안 할 수 있습니까? 사전 :

Truegilly

답변

9

에서

덕분에이 그것을 해결

<!-- Tell a Friend --> 
<rule name="Tell a Friend" stopProcessing="true"> 
    <match url="^.*(?:Search/VehicleDetails.aspx).*$" /> 
    <conditions> 
    <add input="{QUERY_STRING}" pattern="vehicle=(\d+)" /> 
    </conditions> 
    <action type="Redirect" url="/VehicleAdvert/tella/Friend/{C:1}" redirectType="Permanent" appendQueryString="false" /> 
</rule> 
관련 문제