I have my web.config setup as follows:@customErrors mode="RemoteOnly" redirectMode="ResponseRedirect" defaultRedirect="~/SpecialPages/PageNotFound.aspx"@
@error statusCode="404" redirect="~/SpecialPages/PageNotFound.aspx" responseMode="Redirect"/@
@/customErrors@
But when a user goes to mysite.com/gibberish, my 404 page shows up, but the url stays as mysite.com/gibberish, but I want it to say mysite.com/SpecialPages/PageNotFound. Is there somethng else I am missing?I'm using Kentico10 CMS if that makes any difference but have been following their instructions too. Seems like I'm missing something server side.
↧