Redirecting default.aspx to root virtual directory

后端 未结 6 619
自闭症患者
自闭症患者 2020-12-15 08:34

I have a simple ASP.NET 3.5 application running under IIS7 under a virtual directory. So the URL of my app is like http://example.com/app. I want to 301-redirect the request

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 09:24

    I tried the URL Rewrite method. I.e. this one:

        
          
          
        
    

    but it sent my browser in an infinite redirect loop. I amended it to the following and it worked fine:

                
                    
                    
                
    

提交回复
热议问题