web.config 파일을 사용하여 내 사이트의 특정 페이지를 리디렉션하려고합니다. 이 페이지의 대부분은 더 이상 존재하지 않지만 폴더 구조는 더 이상 존재하지 않습니다. 예를 들어 mysite.com/oldfolder/index.aspx는 더 이상 존재하지 않습니다. oldfolder는 존재하지 않습니다. 그래서 내 프로젝트의 web.config에 "/oldfolder/index.aspx에 대한 모든 요청이 /newfolder/index.aspx로 이동합니다."라는 사례를 만들고 싶습니다. 내가 뒷조사를 해봤이 가장 의미 할 것 같다301 webconfig IIS7의 특정 페이지 리디렉션
<location path="oldfolder/index.aspx">
<system.webServer>
<httpRedirect enabled="true" destination="newfolder/index.aspx" httpResponseStatus="Permanent" />
</system.webServer>
</location>
을하지만 내가/index.aspx를 oldfolder하려고 시도 오류조차있다 및 던져처럼는 역할을합니다. 내가 도대체 뭘 잘못하고있는 겁니까? 아니면 내가 이것을 잘못된 방식으로 모두 공격하고 있습니까?