Jeremy Newman : add a workaound for old issue and interview URLs
Module: website Branch: master Commit: f4cc16f647566c0d015802e714fc2432101fef57 URL: http://source.winehq.org/git/website.git/?a=commit;h=f4cc16f647566c0d015802e... Author: Jeremy Newman <jnewman(a)codeweavers.com> Date: Tue Dec 9 15:04:32 2008 -0600 add a workaound for old issue and interview URLs --- site | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/site b/site index 9915d70..209c6b8 100644 --- a/site +++ b/site @@ -75,6 +75,24 @@ else define("PAGE", 'home'); } +// homepage old URL redirects +if (defined("PAGE") and PAGE == "home") +{ + // fix old WWN issue URLS + if (isset($_GET['issue']) and intval($_GET['issue']) > 0) + { + $html->redirect("{$config->base_url}wwn/{$_GET['issue']}"); + exit(); + } + + // fix old interview URLS + if (isset($_GET['interview']) and intval($_GET['interview']) > 0) + { + $html->redirect("{$config->base_url}interview/{$_GET['interview']}"); + exit(); + } +} + // loag page content $html->page = $html->template("local", PAGE);
participants (1)
-
Jeremy Newman