나는 URL Rewriting.NET과 비교하여 많이 좋아한다. - 더 많은 versitile이 보인다. 틀린 말은하지 않는다. URL 재 작성을 좋아한다. .NET,하지만 도구의 내가 뭘 알고 주어진 필요성을 충족하지 않는 것). default-documents 노드를 사용하여 사이트의 기본 문서를 재정의하려고합니다. 나는 라이터 노드에 추가 해봤지만, 나는 Web.config의 오류URL Rewriter.NET web.config 노드 문제
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The element 'default-documents' is not allowed.
Source Error:
Line 187:
Line 188: <rewriter>
Line 189: <default-documents>
Line 190: <document>default.aspx</document>
Line 191: <document>index.aspx</document>
사람이 과거에이 도구를 사용하고있다 얻고, 누군가는 어디에서이 노드 (또는 적절한 사용)를 넣어하는 방법을 알고 있습니까?
편집 :
나는 아래의 제안을 시도했지만 아주 잘 작동하지 않았다. 여기에 내가 전에 urlrewriter 사용하고, 실제로뿐만 아니라 기본 문서를 설정하는 몇 가지 문제를 했어 (이 설정 파일의 유일한 내용입니다)
<rewriter>
<rewrite url="^(/.+(\.gif|\.png|\.jpg|\.ico|\.pdf|\.css|\.js)(\?.+)?)$" to="$1" processing="stop" />
<default-documents>
<document>default.aspx</document>
<document>index.aspx</document>
</default-documents>
</rewriter>
"제대로 작동하지 않는 것"이 "기본 문서를 사용하지 않았습니까?"를 의미합니까? 그렇다면 아래 편집을 확인하십시오. – Moose