1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Multiple URLs for Page results in System.Web.HttpException: Page not found

Multiple URLs for Page results in System.Web.HttpException: Page not found

2 posts, 1 answered
  1. Jacques
    Jacques avatar
    427 posts
    Registered:
    28 Jun 2007
    06 Jun 2012
    Link to this post
    Hi there,

    We have a bunch of old pages that have either moved or been renamed so we're adding 301 redirects for SE benefit. On most pages this is working, but on a few we get a System.Web.HttpException, which is actually a 404 error. Normally if the page wasn't found the page returned would come from IIS.

    For example:
    ~/CustomerEnquiry
    ~/About-Us/Register
    ~/Contact-Us/CustomerEnquiry
    ~/Home/Register
    These are URLs that I added to a new page as additional URLs.
    1. CustomerEnquiry works and redirects to our new Register page
    2. Same goes for About-Us/Register and Home/Register
    3. Contact-Us/CustomerEnquiry doesn't work it returns an exception which is incidentally has a return status code of 404 which is contradictory. If an exception was thrown one would expect it to throw a 500 internal server error. If it's a 404 one wouldn't expect to see the exception message thrown by asp.net.
    See the attached image for the exception page.

    Any ideas why this would be happening?

    Regards,
    Jacques
  2. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    31 May 2017
    11 Jun 2012
    Link to this post
    Hello,

    The problem comes from the fact that this additional URL is different from the URL of the page or the URL of the parent page. You have received 404 error because the page with this URL does not exist. Please review your URL and fix them in order to solve the problem.

    Greetings,
    Stefani Tacheva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
2 posts, 1 answered