OK. I’m having a ridiculous problem. I’m trying to use URL rewrite to redirection from http://www.domain.com to http://www.domain.com/default.aspx.
I thought by setting default.aspx as the default document it would automatically drop the user there. But for some reason it still comes up http://www.domain.com.
The reason I want it to go to http://www.domain.com/default.aspx is that the login control on the page doesn’t seem to want to work when it is just the http://www.domain.com. But of course if I type in the http://www.domain.com/default.aspx then the login works fine. The login control doesnt seem to post at all if it is http://www.domain.com. Anyway, I’m trying to avoid troubleshooting why the login control is not firing and just force it to land on default.aspx anytime someone tries to go to http://www.domain.com. I’m using IIS7. Any ideas here?
The anwer has to do with a breaking change in ASP.NET 4. Answer was that the form action was empty
action=""when on extensionless root url. but if on that same page, but had the name of the page in the url (blahblah.com/default.aspx) the action gets filled in. the easy fix for me was to putMe.Form.Action = "Default.aspx"on the page load of the home page. problem fixed.