Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Custom 404

  1. #1
    Regular Coder
    Join Date
    Sep 2007
    Posts
    263
    Thanks
    19
    Thanked 0 Times in 0 Posts

    Custom 404

    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?

  • #2
    Senior Coder twodayslate's Avatar
    Join Date
    Mar 2007
    Location
    VA
    Posts
    1,042
    Thanks
    67
    Thanked 39 Times in 39 Posts
    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/
    twitter | Quality Hosting - $5.95/mo*
    Feel free to PM me!

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    IFeelYourPain (01-21-2008)

  • #4
    Regular Coder
    Join Date
    Sep 2007
    Posts
    263
    Thanks
    19
    Thanked 0 Times in 0 Posts
    thanks man that helped


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •