r973 - webspace/include
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Nov 11 00:37:16 EST 2006
Author: floam
Date: 2006-11-11 00:37:16 -0500 (Sat, 11 Nov 2006)
New Revision: 973
Modified:
webspace/include/thebrain.php
Log:
Send proper header so google and stuff knows not to use the old URLs.
Modified: webspace/include/thebrain.php
===================================================================
--- webspace/include/thebrain.php 2006-11-11 05:00:23 UTC (rev 972)
+++ webspace/include/thebrain.php 2006-11-11 05:37:16 UTC (rev 973)
@@ -14,9 +14,10 @@
else
$ua = false;
-if (strpos($_SERVER['HTTP_HOST'], "icculus.org") !== FALSE)
+if (strpos($_SERVER['HTTP_HOST'], "icculus.org") !== FALSE) {
+ header("HTTP/1.1 301 Moved Permanently");
header("Location: http://ioquake3.org" . str_replace("quake3/", '', $_SERVER["REQUEST_URI"]));
-
+}
$normal = '<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
if ((strpos($_SERVER['HTTP_ACCEPT'], "application/xhtml+xml")) || ($ua['parent'] == "Validation Checkers"))
More information about the quake3-commits
mailing list