Multiple URLs for Page results in System.Web.HttpException: Page not found
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
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