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. Linux, Apache, MySQL, PHP
  4. Handling HTTP Errors

Handling HTTP Errors

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
helpcsharpphpasp-netapache
2 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.
  • A Offline
    A Offline
    awedaonline
    wrote on last edited by
    #1

    Hi, In ASP.NET, the best way to manage http errors e.g: Error 400.x, 500.x is to specify this in the web.config or globax.asax file. How do I accomplish the same in php, because I was to get a nicely formatted error page displayed to my users instead of the anoying apache error page. Please help!

    G 1 Reply Last reply
    0
    • A awedaonline

      Hi, In ASP.NET, the best way to manage http errors e.g: Error 400.x, 500.x is to specify this in the web.config or globax.asax file. How do I accomplish the same in php, because I was to get a nicely formatted error page displayed to my users instead of the anoying apache error page. Please help!

      G Offline
      G Offline
      Graham Breach
      wrote on last edited by
      #2

      You can configure your Apache server to display custom error pages using the ErrorDocument directive: http://httpd.apache.org/docs/2.2/mod/core.html#errordocument[^]

      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