Author: ishan_bakshi | Posted on: 8/16/2010 3:06:37 PM | Views : 263

Hi,
I have a website which has both html and aspx pages. for aspx pages i have added code in customerror section in web.config and is working fine, but only in case of aspx pages. I want if somebody looks for html page which does not exist should also be taken to error page.
For e.g if you try http://www.domain.com/abc.aspx will take you to error.aspx page
but if you try http://www.domain.com/abc.html will give Error 404, page not found.


The solution at http://aspnetresources.com/articles/CustomErrorPages ( What about html pages section) will only work if the site is hosted at my servers, but in my case the website is hosted somewhere else.


Kindly Help.
Thanks

...

Go to the complete details ...