Re: Custom 404 page

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jeff Cochran (jcochran.nospam_at_naplesgov.com)
Date: 04/30/04


Date: Fri, 30 Apr 2004 17:56:21 GMT

On Thu, 29 Apr 2004 12:50:23 -0700,
<anonymous@discussions.microsoft.com> wrote:

>I am using IIS 6 on WinXP. I created a custom 404 page.
>My 404 page contains a static html page that has link as
>well as form so that people can email their comments.
>The .html page calls the asp page which uses CDO to email
>the comments. First I had created a folder on the server
>called in which I put the html, .asp and images in a
>subfolder /images.
>
>For some reason this html page is not sowing up and then
>when I moved the .html page and .asp page on the root of
>the website then they started working only for pages that
>are on the same root level such as home page. For all the
>other pages, I can now see the custom 404 page but with
>missing images and style *** and it won't do any
>emailing comments part.
>
>When I changed the relative path to images and style ***
>to absolute, all the pages started working. So in all
>the articles that I read over the internet about creating
>404 custom pages, no one mentioned the following two
>important things:
>
>(1) Keep the 404 custom pages at the root level
>(2) User absolute paths for images and style ***.
>
>I wanted to share this experience with all of you to know
>if you have experienced the same problems.
>
>May be my IIS server is messed up, this is how IIS works
>or

Or just the way you set it up. Links and paths are independent of it
being an error page, and the same rules apply as would to any page.

Jeff


Quantcast