Results 1 to 4 of 4

Thread: 404 Problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2007
    Posts
    97

    404 Problem

    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.

  2. #2
    Frenzied Member brin351's Avatar
    Join Date
    Mar 2007
    Location
    Land Down Under
    Posts
    1,293

    Re: 404 Problem

    Really that has to be handled by IIS. asp.net will not handle requests for non .net files unless you change the mapping's in IIS which is probably not an option. Often hosting companies allow shared hosting to set their own IIS error pages via the management console they provide. Have you searched for that feature?

  3. #3
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: 404 Problem

    Hey,

    What host are you with? Have you tried asking their support team?

    Gary

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: 404 Problem

    If you're on a shared host, it should give you a control panel where you can specify the site-wide 404 page to use. Check your control panel.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width