ASP.NET URL URL for IIS 6.0

I have enabled routing on an ASP.NET web application with IIS 6.0 using

RouteTable.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 customized default page (default.aspx), it tries to redirect the request and send to the login.aspx page, because we use forms authentication.

Any suggestions on enabling routing in the root directory ?.

+3
source share
1 answer

If you have Default.aspxthe root of your application. Therefore, set the parameter RouteTable.Routes.RouteExistingFilesto false.

0
source

Source: https://habr.com/ru/post/1724097/


All Articles