View Full Version : Custom 404

01-20-2008, 08:58 PM
Hello guys here's my issue. I currently never had custom error documents enabled. Before when I didn't it would say:

The requested URL /df was not found on this server.

Apache/2.0.54 (Fedora) Server at www.pspdiscussions.com Port 80

Now I need to figure out how to make my custom error document say that above instead of:

The requested document was not found on this server.

Web Server at pspdiscussions.com

NOTE: Where it says URL it would give the url of the area that you typed that was incorrect and on the Apache area it would give your server information. So anyone know how to achieve this with only html files or is it not possible?

01-21-2008, 06:48 AM
http://www.php.net/reserved.variables In PHP it is $_SERVER['DOCUMENT_ROOT'] and that should give you pspbiscusiions.com. I am not sure if that is what you want though.

01-21-2008, 08:03 AM
Creating Custom Error Messages (http://www.washington.edu/computing/web/publishing/errordocs.html)

01-21-2008, 07:46 PM
thanks man that helped