locked
Preprocessor of Requests to site. RRS feed

  • Question

  • User993391340 posted
    Good day.
    I use Win2003EE+IIS6+ASP.NET1.1
    I have to writing tool to preprocess request to my site.
    So if user requested the document which isn't exists on server ( 404 http error ) We want to redirect him to more relative for him url in our site.
    We have near 40000 peoples a day and We want to choose more perfomance way to realize.
    I think use of ISAPI extensions isn't very good idea.
    And We can't use context(ASP.NET) with inner redirecting because site consist from 4 different parts with different logic. So why this question We can't solve using only ASP.NET.
    Monday, February 5, 2007 4:36 AM

All replies

  • User113421904 posted

    Hi,

    Asp.Net custom error can help you achieve this. The configuration is simple, here is example:

    web.config

    <customErrors mode="On" defaultRedirect="/WebTest/ErrorPages/AppError.html">
        <error statusCode="404" redirect="/WebTest/ErrorPages/404.html" />
    </customErrors>

    Monday, February 5, 2007 10:25 PM