Hi All,

I have to redirect page to no-page-found.aspx in case there is no such page is existing in website. i have implemented it. it works on local successfully but it is not working on live site. if i write .aspx at the end then it is redirecting.
ex. i write www.test.com/abcd in this case in local it is redirecting to my no-page-found.aspx but it is not working on live site. but incase i write www.test.com/abcd.aspx then it is redirecting to no-page-found.aspx in live site as well as local.

please do some needful help.

Thanks,
KK

Did you set the value in your Web.Config?

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
   <error statusCode="403" redirect="NoAccess.htm" />
   <error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>