I enabled a routing on ASP.NET web application running IIS 6.0 using
Rou开发者_如何学运维teTable.Routes.MapPageRoute("Simple", "{testvalue}", "~/Test.aspx"); in Global.aspx.cs
This works fine when I use http://www.MyDomain.com/Hello, however when I use http://subdomain.mydomain.com instead of loading the configured default page (default.aspx), it tries to route the request and sending to login.aspx page as we use Forms Authentication.
Any suggestions on how to enable routing at root directory?.
If you have Default.aspx
on the root of your application. Thus, Set the RouteTable.Routes.RouteExistingFiles
to false.
精彩评论