Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4585898
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T21:33:43+00:00 2026-05-21T21:33:43+00:00

Why is this not working, as in the pre-set 404 page is not loaded:

  • 0

Why is this not working, as in the pre-set 404 page is not loaded:

header("HTTP/1.0 404 Not Found");
exit;

.htaccess has the ErrorDocument 404 /404.html directive set.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T21:33:44+00:00Added an answer on May 21, 2026 at 9:33 pm

    Make sure your customized error page /404.html has the content size greater than 512 bytes. Many browsers like IE, Chrome etc don’t show your customized page if content length of your custom 404 page is less than 512.

    UPDATE

    Based on your comments here is what I think is happening.

    If you look at the access.log or http headers in Firebug/HTTP Watch etc of this blank page, you’d see a 404 return code. Once the web server starts processing the PHP page, it’s already passed the point where it would handle 404 handling by itself since your php file is actually FOUND. Now since your php code is merely returning status 404 without any content therefore a blank page gets displayed.

    Now since this is correct apache behavior and its up to you to create the contents for the 404 page. Something like this in your above php code will be fine I think:

    <?php
    header("HTTP/1.0 404 Not Found");
    exit("<h1>Not Found</h1>
    The requested URL " . $_SERVER["REQUEST_URI"] . " was not found on this server.
    <hr>");
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On whatever reason this is not working (says 'file not found'), set in=c:\myprogram\_save cd
So why is this not working? I'm creating a regex that will match a
I want to know i can do something similar to this (not working) code
This is not working. Firebug is not throwing any error though. HTML: <table> <tr><td>BookA</td><td><a
This is not working and it is driving me nuts. I have in the
Why is this thing not working? [Database(Name=Relationships_Test)] [Table(Name = Order)] public class Order {
I am not sure why this is not working. Perhaps I am missing something
I dont really understand why this is not working, I am being returned to
What I tried is by adding selected , but this is not working: <select>
trackLbl2.text = @Nonstop Bollywood Music; I try this but not working. How to text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.