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

Posted by Community Admin on 04-Aug-2018 12:52

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

All Replies

Posted by Community Admin on 06-Jun-2012 00:00

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

Posted by Community Admin on 11-Jun-2012 00:00

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

This thread is closed