global$wp_query;
$wp_query->set_404();
status_header(404);
nocache_headers();
echo'<meta http-equiv="refresh" content="0;url='.home_url().'">';
exit;