Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 661891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:19:06+00:00 2026-05-13T23:19:06+00:00

We use a custom urlrewiter on our .net sites and set a wildcard mapping

  • 0

We use a custom urlrewiter on our .net sites and set a wildcard mapping to redirect any request to the .net isapi filter for processing.

This works fine but we have noticed an issue with our custom 404 pages not working and iis handling the 404s instead. We configure the custom errors in the web.config as follows

<customErrors mode="On">
  <error statusCode="404" redirect="/404.aspx"/>
  <error statusCode="500" redirect="/500.htm"/>
</customErrors>

I noticed that the custom errorpage is served if I request an page with an aspx extension (www.mysite.com/madeuppage.aspx) but not an invalid directory (www.mysite.com/madeupdirectory/). I guess this is because IIS is passing aspx pages to the .NET enginbe for handling but I thought the wildcard mapping would pass directorys too?

This could be fixed by me configuring the custom error page in IIS but I would rather this be configured in the web.cofig if possible? Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:19:06+00:00Added an answer on May 13, 2026 at 11:19 pm

    IIS passes 404 request to modules, but executes only several events:

    IIS_BeginRequest /qwe
    IIS_AuthenticateRequest
    IIS_AuthorizeRequest
    IIS_ResolveRequestCache
    IIS_PostResolveRequestCache
    IIS_EndRequest/qwe
    

    I’m one of developers of Helicon Ape (http://www.helicontech.com/ape). And actually the events above were executed within Ape when I requested non-existent page.
    You may try Ape because it has both URL rewriting and custom error solutions. Example:

    ErrorDocument 500 http://www.domain.com/cgi-bin/tester
    ErrorDocument 404 /custom_error_page.htm
    ErrorDocument 403 "Sorry, the access is forbidden"
    

    If it’s relevant, the syntax is text-based and Apache compatible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use a custom-built asp.net control that renders to a DIV and has height='0'
We use custom-written Git hooks in our project. Hooks are stored in a project's
We use custom type to represent Identifiers in our project. It has TypeConvertor attached
We use custom bbcode in our news posts [newsImage]imageName.jpg[/newsImage] And i'd like to use
We use custom event tracking in our web application with Google Analytics to report
We are trying to use custom routes in an ASP.NET MVC application to generate
I'm looking for a way to use custom ASP.NET validators to validate input, without
I'm trying to use custom container widgets in gtk.Builder definition files. As far as
I am using wordpress and use custom permalink structure: /%category%/%postname%/ My problem is that
I use a custom Matrix class in my application, and I frequently add multiple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.