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

I'm using the Ubercart product and product_kit modules. This is great at linking from
My task is to check (>trillions checks), does two int contain any of predefined
I'm trying to rescale a timestamp (fractional part of seconds only) from nanoseconds (units
I have two requirements, and im not sure is those things possible in AS3.
I have this function: function myFunc() { $conn=new mysqli('localhost','root','','myDb'); $conn->query('BEGIN'); $query=SELECT events_participants.userid,(SELECT COUNT(*) FROM
boost:: asio provides an example of how to use the library to implement asynchronous
I'm new to WPF and I'm finding that the WPF .Net 4.0 Datagrid doesn't
After script/generate authenticated user sessions users_controller.rb is created with def new @user = User.new
I'm programming both in JAVA and PHP. I got one problem with string comparison.
Greetings! I've got a Google App Engine Setup where memcached keys are prefixed with

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.