Closed (fixed)
Project:
Search 404
Version:
5.x-1.3
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Sep 2008 at 02:17 UTC
Updated:
8 Sep 2008 at 02:25 UTC
There is no HTTP 404 header called on the search404 page. This is critical because it means search engines can find any address with your base URL and index it. For example, http://www.example.com/ajfdsaoiewjfghzxcm could be indexed.
You can use drupal_set_header("HTTP/1.0 404 Not Found"); to set the HTTP header to 404. Add it as the first line in function search404_page().
Comments
Comment #1
icecreamyou commentedSorry, I take it back. Apparently Drupal takes care of this on its own, or something. I think.