2
IIS7.5 및 URL 재 작성 모듈을 실행 중입니다. iis7에서 URL 재 작성
나는 사용자 친화적 인 URL의 수 있도록 단계 지침에 의해 이러한 단계를 다음 :Rule Templates for the URL Rewrite Module - User Friendly URL - rule template
나는 웹 사이트가 404: file not found error
을 던져 대신 http://domain.com/default.aspx
의 URL http://domain.com/default/
를 입력합니다.
<rewrite>
<rules>
<rule name="RedirectUserFriendlyURL1" stopProcessing="true">
<match url="^demourl\.dev\.asenetechdev1\.com/default\.aspx$" />
<conditions>
<add input="{REQUEST_METHOD}" pattern="^POST$" negate="true" />
</conditions>
<action type="Redirect" url="demourl.dev.asenetechdev1.com/default"
appendQueryString="false" />
</rule>
<rule name="RewriteUserFriendlyURL1" stopProcessing="true">
<match url="^demourl\.dev\.asenetechdev1\.com/default$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="false" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="false" />
</conditions>
<action type="Rewrite" url="demourl.dev.asenetechdev1.com/default.aspx" />
</rule>
</rules>
<outboundRules>
<rule name="OutboundRewriteUserFriendlyURL1" preCondition="ResponseIsHtml1">
<match filterByTags="A, Form, Img"
pattern="^(.*)demourl\.dev\.asenetechdev1\.com/default\.aspx$" />
<action type="Rewrite" value="{R:1}/ demourl.dev.asenetechdev1.com/default" />
</rule>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
내가이 함께 Intelligencia.UrlRewriter 사용하여 시도 : 여기
내 재 작성 규칙입니다. 하지만 로컬뿐만 아니라 서버에 친숙한 URL을 생성 할 수 있습니다,하지만 내 로컬 서버에서 작동하지만, 살아있는 서버에 괜찮습니다 extensionless URL을 싶습니다.
'web.config' 설정을 포함하는 것을 잊었습니다 ... – Druid