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 902319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:41:55+00:00 2026-05-15T15:41:55+00:00

This is actually a two-part question. My server is set up to redirect all

  • 0

This is actually a two-part question. My server is set up to redirect all 404 errors within Apache itself to index.php?404. Does this still send a 404 status message to the client to tell them the page was not found, and then display my customized 404 error page? Because I also have processes within other pages. While the page itself may exist, if the username (for example) is invalid or does not exist, it simply displays the same 404 page straight from the file (includes the 404 page and dies). Should I be using PHP to send an additional 404 status to tell the client the page didn’t exist and if so, how do I do that?

Edit:
To further explain the problem above:
admin.example.com -> admin is a valid username and will display pages
madeup.example.com -> madeup is an invalid username and will output the 404 page
*.example.com redirects to index.php for processing, so search engines, etc will think the page exists because it got processed then I simply outputted a 404 page and killed the script…

I recently had a problem where Google cached a page that was a 404 error so I was trying to figure out how to prevent search engines, etc from caching or reading pages when they send out the 404 page when the page technically exists. Are there other, better alternatives?

  • 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-15T15:41:55+00:00Added an answer on May 15, 2026 at 3:41 pm

    If the 4nn/5nn error page has an actual HTTP status header of 200 OK, then it will be indexed.

    So, you need to ensure that it’s been sent along with the correct HTTP status header. This fault is often caused by sending a redirect to the error page instead of a forward/include. A redirect basically instructs the client to fire a brand new request to the server, which would always result in 200 OK. You would like to programmatically modify/set the header inside the error page, e.g.

    header('HTTP/1.1 404 Not Found');
    

    You can determine the actual HTTP status code using tools like Firebug and Web Developer Toolbar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a two part question, but I want to make sure the first
Edit: There is a somewhat strange solution to this question. Check my answer posted
(An earlier question, Recursively (?) compose LINQ predicates into a single predicate , is
(EDIT: I have asked the wrong question. The real problem I'm having is over
I want to split a string suppressing all null fields Command: ,1,2,,3,4,,.split(',') Result: [,
This is another of those SCJP questions. The code below prints Alpha:fooBeta:fooBeta:barBeta:bar , and
I'm using Reportlab to create PDFs. I'm creating two PDFs which I want to
Hey guys, I'm currently trying to implement a function using C that takes in
I'm trying to do some advanced features with android maps and to do that
I have a recursively defined user control that needs the following properties: there are

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.