Web server configuration/openfarmtech.org/index.php: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
(Created page with "==File Contents== <pre> <?php if (in_array('title', $_GET) and $_GET['title']) { header("Location: http://opensourceecology.org/wiki/".$_GET['title']."?old-url=true&".$_SERVE...")
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
==File Contents==
== File Contents ==
<pre>
<pre>
<?php
<?php
if (in_array('title', $_GET) and $_GET['title']) {
  header("Location: http://opensourceecology.org/wiki/".$_GET['title']."?old-url=true&".$_SERVER["QUERY_STRING"], TRUE, 301);
    header("Location: http://opensourceecology.org/wiki/".$_GET['title']."?old-url=true&".$_SERVER["QUERY_STRING"], TRUE, 301);
} else {
    header("Location: http://opensourceecology.org/wiki/OLD", TRUE, 301);
}
?>
?>
</pre>
</pre>
[[Category: IT Infrastructure]]

Latest revision as of 14:29, 18 June 2011

File Contents

<?php
  header("Location: http://opensourceecology.org/wiki/".$_GET['title']."?old-url=true&".$_SERVER["QUERY_STRING"], TRUE, 301);
?>