V
Vlad
Hello everybody,
I have a problem with custom error page. I' using a redirection in a
web.config file to a custom error page:
<customErrors mode="RemoteOnly" defaultRedirect="/_err/generic.aspx">
<error statusCode="404" redirect="/_err/not-found.aspx" />
</customErrors>
My custom error page "not-found.aspx" returns "HTTP Status Code: 404
Not found" which is OK.
But when I'm trying to check HTTP Status Code of non existing page it
is returns "HTTP Status Code: 302 Found" which means Temporary
Redirection. Any Ideas how to fix this problem? I want non existing
page return "HTTP Status Code: 404 Not found" as well.
Thank you,
Vlad.
I have a problem with custom error page. I' using a redirection in a
web.config file to a custom error page:
<customErrors mode="RemoteOnly" defaultRedirect="/_err/generic.aspx">
<error statusCode="404" redirect="/_err/not-found.aspx" />
</customErrors>
My custom error page "not-found.aspx" returns "HTTP Status Code: 404
Not found" which is OK.
But when I'm trying to check HTTP Status Code of non existing page it
is returns "HTTP Status Code: 302 Found" which means Temporary
Redirection. Any Ideas how to fix this problem? I want non existing
page return "HTTP Status Code: 404 Not found" as well.
Thank you,
Vlad.