...

View Full Version : Custom 404



IFeelYourPain
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?

twodayslate
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.
http://www.alistapart.com/articles/perfect404/

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum