Redirector to remote URLs by "301 Moved Permanently"
authorshort <>
Thu, 25 Apr 2002 16:15:05 +0000 (16:15 +0000)
committershort <>
Thu, 25 Apr 2002 16:15:05 +0000 (16:15 +0000)
 - only parameter "location" currently supported

redirect.php [new file with mode: 0644]

diff --git a/redirect.php b/redirect.php
new file mode 100644 (file)
index 0000000..20c74b8
--- /dev/null
@@ -0,0 +1,11 @@
+<?php $cvs_id='$Id$';
+
+       $detect_ent=false;
+       include("common.php");
+
+       prepvar("location","[a-z]+://.*");
+
+       header("HTTP/1.0 301 Moved Permanently");
+       header("Location: $location");
+
+?>