Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to get 404 error before IIS?

How to get 404 error before IIS?

Scheduled Pinned Locked Moved ASP.NET
windows-adminhelptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xibeifeijian
    wrote on last edited by
    #1

    How to get 404 error before IIS? Can anyone tell me,thanks!

    N 1 Reply Last reply
    0
    • X xibeifeijian

      How to get 404 error before IIS? Can anyone tell me,thanks!

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      xibeifeijian wrote:

      How to get 404 error before IIS?

      I think you want to redirect 404 error pages to some other custom page ? For this take properties of your website in IIS. Go to customerrors tab. Click on edit properties and give the location where it should go for 404 error. If the page is aspx you can add <error> tag for redirection


      printf("Navaneeth!!") www.w3hearts.com

      X 1 Reply Last reply
      0
      • N N a v a n e e t h

        xibeifeijian wrote:

        How to get 404 error before IIS?

        I think you want to redirect 404 error pages to some other custom page ? For this take properties of your website in IIS. Go to customerrors tab. Click on edit properties and give the location where it should go for 404 error. If the page is aspx you can add <error> tag for redirection


        printf("Navaneeth!!") www.w3hearts.com

        X Offline
        X Offline
        xibeifeijian
        wrote on last edited by
        #3

        Thank you for your reply.:)I not say clearly.I want to catch 404 before IIS has detected it.Is there anyway to detected 404 error in C#? For example ,someone request http://www.163.com/csharp and "csharp" isn't exist,now my application will get a 404 error.But I don't want to show this error for my customer,I want to redirect him to a new page like http://www.163.com/csharp.aspx?id=234&kdlg=dg&dkdk=dlg.(Just like URLRewriter). -- modified at 1:37 Thursday 22nd March, 2007

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups