Redirector to remote URLs by "301 Moved Permanently"
[www.energie.vellum.cz.git] / redirect.php
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");
+
+?>