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 difference)

Revision as of 18:24, 12 June 2011

File Contents

<?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);
} else {
    header("Location: http://opensourceecology.org/wiki/OLD", TRUE, 301);
}
?>