0

I am using url routing with asp.net web forms.

If Url doesnt exist I am redirecting the user to my custom error page.

It works with aspx page but old asp links (old asp not .net) getting error 404.

For example :

http://www.worldweddingguide.com/companies.asp

http://www.worldweddingguide.com/companies.aspx

onder
  • 795
  • 3
  • 14
  • 32

1 Answers1

0
  1. on ASP handler, check the option 'check if file exsits'.

  2. set IIS's 404 url (not ASP.net one!) by web.config 'system.webServer' or with IIS GUI. www.stokia.com/support/misc/web-config-custom-httperrors.aspx

  3. see also: <modules runAllManagedModulesForAllRequests="true" /> Meaning

Community
  • 1
  • 1
Moshe L
  • 1,797
  • 14
  • 19