Web server configuration/openfarmtech.org/index.php

From Open Source Ecology
< Web server configuration‎ | openfarmtech.org
Revision as of 18:24, 12 June 2011 by Elifarley (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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);
}
?>