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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    England
    Posts
    172
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Custom error pages without htaccess ?

    I'm not allowed to use .htaccess on my current web space.

    Is there another way to specify custom error pages ? Server is Linux RedHat (perl, php, cgi).
    \o/

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    You need htaccess or access to the server config.

    If you're site is using php and you're using includes to change the information, you can do something like this

    PHP Code:
    if(file_exists("page.php")){
      include(
    "page.php");
    }else{
      include(
    "Error404.php");



  •  

    Posting Permissions

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