Skip to content

Commit daeb235

Browse files
authored
404 Error noindex headers
1 parent ce32aaa commit daeb235

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

index-nofollow-404.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
header("X-Robots-Tag: noindex, nofollow", true);
3+
header('HTTP/1.0 404 Not Found', true, 404);
4+
5+
echo '<!DOCTYPE html>
6+
<html lang="en">
7+
<head>
8+
<meta charset="UTF-8">
9+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
10+
<meta name="robots" content="noindex, nofollow" />
11+
<title>404 Not found</title>
12+
</head>
13+
<body>
14+
404 Not found
15+
</body>
16+
</html>';
17+
18+
// http_response_code(404);
19+
// header("HTTP/1.1 301 Moved Permanently");
20+
// header("Location: https://atomjoy.github.io");

0 commit comments

Comments
 (0)