Hi,

How do I have 404 for .htm and .html pages.

I cannot use ".htaccess" file because I am on a shared windows server.

Currently I have a 404.aspx page and configure the web.config page as so:

Code:
    <customErrors mode="On" >
      <error statusCode="404" redirect="404.aspx"/>
    </customErrors>
But unfortunately this only works for .aspx pages.

I have researched this for many hours but haven't managed to find a solution just yet. Hoping someone here can help.


Thanks in advance.