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 3 of 3

Thread: Error Handling

  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Posts
    459
    Thanks
    0
    Thanked 20 Times in 20 Posts

    Error Handling

    ok so in my htaccess file I have:
    #*****************************************************#
    # Error Handling Options #
    #*****************************************************#
    ErrorDocument 400 /errors/400.php
    ErrorDocument 401 /errors/401.php
    ErrorDocument 403 /errors/403.php
    ErrorDocument 404 /errors/404.php
    ErrorDocument 500 /errors/500.php

    however the main site still pulls up the server default pages where the addon domains run these correctly. Did I accidently reset the main site somewhere and not know? And how can I test for each error to be sure it works correctly?
    NO Limits!! DHCreationStation.com
    ------------------------------------------------------------
    Broken items wanted for tinkerin'! PostItNow@BrokenEquipment.com
    Global Complaint Dept.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    This has absolutely nothing to do with PHP.
    Moving to Apache configurations.

    You'd have to ensure that you have the override FileInfo option set, so you have to verify that is set in the httpd.conf in order to have it usable in the .htaccess.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  • #3
    Regular Coder
    Join Date
    Sep 2002
    Posts
    459
    Thanks
    0
    Thanked 20 Times in 20 Posts
    found out problem is with browsers not scripts or htaccess file. When I used firefox I got php scripts
    showing things correctly, when using IE (whatever) errors default to IE's error messages unless
    "show friendly error pages" is unchecked in IE inet options.
    Thanks for the help!
    Last edited by c1lonewolf; 01-16-2014 at 09:06 PM.
    NO Limits!! DHCreationStation.com
    ------------------------------------------------------------
    Broken items wanted for tinkerin'! PostItNow@BrokenEquipment.com
    Global Complaint Dept.


  •  

    Posting Permissions

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