git://git.jankratochvil.net
/
www.energie.vellum.cz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59f5048
)
Redirector to remote URLs by "301 Moved Permanently"
author
short
<>
Thu, 25 Apr 2002 16:15:05 +0000
(16:15 +0000)
committer
short
<>
Thu, 25 Apr 2002 16:15:05 +0000
(16:15 +0000)
- only parameter "location" currently supported
redirect.php
[new file with mode: 0644]
patch
|
blob
diff --git a/redirect.php
b/redirect.php
new file mode 100644
(file)
index 0000000..
20c74b8
--- /dev/null
+++ b/
redirect.php
@@ -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");
+
+?>