How to get 404 error before IIS?
-
How to get 404 error before IIS? Can anyone tell me,thanks!
-
How to get 404 error before IIS? Can anyone tell me,thanks!
xibeifeijian wrote:
How to get 404 error before IIS?
I think you want to redirect 404 error pages to some other custom page ? For this take properties of your website in IIS. Go to customerrors tab. Click on edit properties and give the location where it should go for 404 error. If the page is aspx you can add <error> tag for redirection
printf("Navaneeth!!") www.w3hearts.com
-
xibeifeijian wrote:
How to get 404 error before IIS?
I think you want to redirect 404 error pages to some other custom page ? For this take properties of your website in IIS. Go to customerrors tab. Click on edit properties and give the location where it should go for 404 error. If the page is aspx you can add <error> tag for redirection
printf("Navaneeth!!") www.w3hearts.com
Thank you for your reply.:)I not say clearly.I want to catch 404 before IIS has detected it.Is there anyway to detected 404 error in C#? For example ,someone request http://www.163.com/csharp and "csharp" isn't exist,now my application will get a 404 error.But I don't want to show this error for my customer,I want to redirect him to a new page like http://www.163.com/csharp.aspx?id=234&kdlg=dg&dkdk=dlg.(Just like URLRewriter). -- modified at 1:37 Thursday 22nd March, 2007