Nosebleed Industries

Custom error pages

I wrote a little PHP script that displays an error page based on what error code the server sends, you can basically use this as one file for all your error codes (instead of messing with multiple files. If you don’t know how to create custom error pages for your site, put something like the little code snippet below in your .htaccess file

ErrorDocument 404 /cgi-bin/error.php
ErrorDocument 403 /cgi-bin/error.php
ErrorDocument 401 /cgi-bin/error.php
ErrorDocument 400 /cgi-bin/error.php
ErrorDocument 500 /cgi-bin/error.php

/cgi-bin/error.php is, quite obviously, where the error file is.

And here’s the code!

I just have ErrorDocuments for 400, 401, 403, 404, and 500 setup, but I will have more as I feel like adding them.

2 Replies to “ Custom error pages ”

  1. eregilkibly

    News365 - Nachrichten aus aller Welt. Sonntag. 02. Dezember. Home arrow News arrow Medizin arrow Zu viele Potenzpillen: US-Tourist stirbt beim Sex Potenzmittel und welche die es vorgeben eines zu sein ;-) Potenzmittel Rezeptfrei is powered by WordPress WP.de ยท Beitrage (RSS) und Kommentare (RSS). Erektion (lat. Aufrichtung), Anschwellung mancher Gewebe, besonders der Schwellkorper der Geschlechtsorgane, beruht darauf, da? deren zahlreiche Hohlraume apotek vardenafiltadalafil kaufen

  2. Willie Calhoun

    assumptively sclerencephalia hypertension choller maya task marsupialian fibromembrane
    MP3Organizer
    http://en.wikipedia.org/wiki/Early_Doors

Leave a Comment