Web server configuration/openfarmtech.org/index.php: Difference between revisions
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...") |
(The previous version was always redirecting to the main page) |
||
Line 2: | Line 2: | ||
<pre> | <pre> | ||
<?php | <?php | ||
header("Location: http://opensourceecology.org/wiki/".$_GET['title']."?old-url=true&".$_SERVER["QUERY_STRING"], TRUE, 301); | |||
?> | ?> | ||
</pre> | </pre> |
Revision as of 19:07, 12 June 2011
File Contents
<?php header("Location: http://opensourceecology.org/wiki/".$_GET['title']."?old-url=true&".$_SERVER["QUERY_STRING"], TRUE, 301); ?>