Cleaned up some code, Replaced robots.txt & sitemap.txt with PHP code, Updated gitignore rules

Update .gitignore, .htaccess, and 11 more files...
This commit is contained in:
2023-11-08 01:04:07 +01:00
parent f14b8d33a6
commit ebba159b43
13 changed files with 113 additions and 212 deletions

20
robots.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
// Returning a domain-specific "robots.txt" file based on the requested host.
switch($_SERVER['SERVER_NAME']) {
case "nibblepoker.lu":
print("User-agent: *\r\n");
print("Allow: /\r\n\r\n");
print("Sitemap: https://nibblepoker.lu/sitemap.txt\r\n");
break;
case "nibblepoker.com":
print("User-agent: *\r\n");
print("Allow: /\r\n\r\n");
print("Sitemap: https://nibblepoker.com/sitemap.txt\r\n");
break;
default:
http_response_code(400);
exit(1);
}
http_response_code(200);
exit(0);
?>