2012-08-09 3 views
0

이러한 모든 요청을 새롭고 간단한 단일 페이지로 보내는 가장 간단한 방법은 무엇입니까? www.mydomain.com/page.html이라고합니다. 미리 감사드립니다. asp.net /의 Web.config/URL이모든 매개 변수에 대해 동일한 페이지로 aspx 파일 리디렉션

다시 사용

나는 ..이 시도하지만 작동하지 않습니다.

<rule name="nav rule" > 
    <match url="^Nav\.aspx\/Page$" /> 
    <action type="Redirect" redirectType="Permanent" url="http://www.realestate-bigbear.com/featured-listings.html" /> 
</rule> 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FDefault.aspx%2FPageID%3D104742 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPrint%3D1%26PropertyID%3D1968245%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPrint%3D1%26PropertyID%3D2125546%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPrint%3D1%26PropertyID%3D2125559%26%3D%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPrint%3D1%26PropertyID%3D2125562%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPrint%3D1%26PropertyID%3D2125563%26%3D%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPrint%3D1%26PropertyID%3D2133142%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPrint%3D1%26PropertyID%3D2148897%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPrint%3D1%26PropertyID%3D2164928%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPrint%3D1%26PropertyID%3D2167997%26%3D%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPrint%3D1%26PropertyID%3D2205618%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPropertyID%3D2015534%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPropertyID%3D2158616%26%3D,,%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPropertyID%3D2164928%26%3D,,,,,%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPropertyID%3D2176853%26%3D,,%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPropertyID%3D2205618%26%3D%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPropertyID%3D2210074%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPropertyID%3D2212548%26%3D%26 
http://www.realestate-bigbear.com/Nav.aspx/Page=/ListNow/Default.aspx 

답변

0

많은 코드를 줄이기 위해 Url Rewriting library을 사용할 수 있다고 생각합니다.

+0

에서 와일드 카드를 사용하는 방법이 있는지 알고 계십니까? – user1586751

관련 문제