日期:2014-05-20  浏览次数:20457 次

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内容要全部改为我给出的内容(除了第一行)