locked
ASP.Net routing RRS feed

  • Question

  • User-195145321 posted

    I'm not sure if this is the right place to ask and I'm not sure if I am describing the problem correctly, but here goes.

    I have a website with the URL http://domain.com. It pulls up my default startup page default.aspx. This is a basic Hello World asp.net page. Framework is 4.0.

    Now, when I type a forward slash with a fake category such as domain.com/default.aspx/nothing I get a HTTP status code of 200.

    I can go on and on with a fake category names such as http://domain.com/deafault.aspx/nothing/nothing/nothing and it will always come back with a HTTP status code of 200, not 404 which it should be since it does not exists.

    But if I place an aspx file at the end of the URL such as http://domain.com/default.aspx/nothing/nothing.aspx or if I start off with http://domain.com/nothing I get the correct status code of 404.

    Can anyone explain to me why http://domain.com/default.aspx/nothing come back with a 200 http status code?

    Is this how ASP.Net routing works?

    Does it even have anything to do with ASP.Net routing?

    Friday, July 26, 2013 6:39 PM

All replies