Having some issues with my site concerning non-existing URLs:
- If you goto any non-existing URL that ends in asp it resolves to the custom 404 page set in IIS7
- If you goto any non-existing URL that ends in aspx it resolves to a server error page that dispalys:
--------------------------------------------------------------------------------
Server Error in '/' Application.
The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /dont.aspx
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.4049
--------------------------------------------------------------------------------
Also... if I goto any URL of my site - which will look like something similar to this:
https://www.domain.com/Locations/tabid/2799/Default.aspx
If I were to remove the tabid value (in this case 2799) the URL will look like this:
https://www.domain.com/Locations/tabid/Default.aspx
this URL redirects me to some other page on our server completely unrelated... I have no idea why... How can I make it so that all non-existent URLs follow the custom 404 page set in IIS7?