사용자 정의 404 페이지로 리디렉션 할 웹 앱이 있습니다. ".aspx"확장자가있는 경우를 제외하고는 모든 URL에서 작동합니다..aspx 확장자에 대한 맞춤 404 페이지 오류
서버는 Windows Server 2008이며 여기에 web.config에 다음 설정이 있습니다 (빠른 예제로 google.com 사용).
<customErrors defaultRedirect="http://www.google.com" mode="On" redirectMode="ResponseRedirect"></customErrors>
<httpErrors errorMode="Custom">
<clear />
<remove statusCode="500" subStatusCode="-1" />
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/404-Page/" responseMode="ExecuteURL" />
<error statusCode="500" prefixLanguageFilePath="" path="/404-Page/" responseMode="ExecuteURL" />
</httpErrors>
는 다시 HTTP 오류는 ".ASPX"
나는 그것을 시도했다. 여전히 같은 문제가 발생합니다. – Channafow
브라우저에 exsist가 아닌 .aspx 파일의 URL을 입력하면 어떻게됩니까? – DaveB
그냥 내 사용자 정의 페이지가 아닌 일반 ASP 오류 페이지로 이동합니다. – Channafow