More in this section
Forums / General Discussions / 404 Page not found working for ASPX Pages Only

404 Page not found working for ASPX Pages Only

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. Tom
    Tom avatar
    1 posts
    22 Dec 2015
    22 Dec 2015
    Link to this post

    Support,  I have both html and aspx pages in my site but only ASPX pages are getting redirected to the 404.aspx page. Is there any way I can have it for all the pages?

    Thanks for the help


    Example:  IIS 404  IIS 404



    <httpErrors errorMode="Custom">
    <clear />
      <remove statusCode="403" subStatusCode="-1" />
      <remove statusCode="404" subStatusCode="-1" />
      <remove statusCode="500" subStatusCode="-1" />
      <error statusCode="403" path="404.aspx" responseMode="Redirect" />
      <error statusCode="404" path="404.aspx" responseMode="Redirect" />
      <error statusCode="500" path="404.aspx" responseMode="Redirect" />


    <customErrors mode="RemoteOnly" defaultRedirect="404.aspx">
    <error statusCode="403" redirect="404.aspx" />
    <error statusCode="404" redirect="404.aspx" />
    <error statusCode="500" redirect="404.aspx" />

1 posts, 0 answered