当前位置: 代码迷 >> ASP.NET >> config 设立重定向求助
  详细解决方案

config 设立重定向求助

热度:7241   发布时间:2013-02-26 00:00:00.0
config 设置重定向求助
<authentication   mode= "Forms ">
            <forms   loginUrl= "/websites/jp/Default.aspx "   protection= "All "   timeout= "30 "   name= "AppNameCookie "   path= "/ "   requireSSL= "true "   slidingExpiration= "false "   defaultUrl= "default.aspx "   cookieless= "UseCookies "   enableCrossAppRedirects= "false "/>
        </authentication>
        <authorization>
            <deny   users= "? "/>
            <allow   users= "admin "/>
        </authorization>
这个将我/websites/   下的所有文件都重定向了。但是我向指定目录的做重定向。比如说/websites/a/目录下的所有文件都重定向。该如何做?

------解决方案--------------------------------------------------------
嗯,对了

你用方法1的时候,新建的web.config内容要全部改为我给出的内容(除了第一行)
  相关解决方案