examples:
website.com/index.aspx - 404 error works fine
website.com/index.php - 404 error works fine
website.com/images/index.aspx - 404 error works fine
website.com/images/index.php - 404 page loads, but with no theme. It tries to load the theme from website.com/images/App_Themes
In my web.config file
<customErrors defaultRedirect="/ErrorPage.aspx" mode="RemoteOnly"> <error statusCode="404" redirect="/Error404.aspx"/>I've tried this with and without the tilde and it makes no difference.
In IIS the custom error is set to URL /Error404.aspx. If I set it to default, the custom error page still works when in the root directory or using the aspx extension, but prints an error otherwise. This leads me to believe that whenever IIS is attempting to load my error page, it does so incorrectly.
What can be causing this problem and how can I fix it?


Sign In
Create Account

Back to top









