My site currently implements custom 404 pages which we have mapped in IIS. So when a user does something like www.mysite.com/foo/bar/doesnotexist, it will execute the 404.aspx URL. This works great, but when inspecting the HTML returned, the form post URL is relative:
<form method="post" action="404.aspx?404%3bhttps%3a%2f%2ftestserver%3a443%2ffoo%2fbar%2fdoesnotexist" onsubmit="javascript:return WebForm_OnSubmit();" id="aspnetForm">
If you look closely the action URL is posting to the 404.aspx but it's a relative path, so it is trying to execute if we do a postback www.mysite.com/foo/bar/doesnotexist/404.aspx. How do I get my executed 404 pages to postback properly? (www.mysite.com/404.aspx)
Thanks.