[Xfce4-commits] <www:master> Feed compatibility.

Nick Schermer noreply at xfce.org
Sat Mar 31 00:04:01 CEST 2012


Updating branch refs/heads/master
         to 57646f2c8d719b74a9a2bb2fdccea80f40e53c59 (commit)
       from adbd98c46731723601f6f9250c24df7277f8c6e8 (commit)

commit 57646f2c8d719b74a9a2bb2fdccea80f40e53c59
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Mar 31 00:03:20 2012 +0200

    Feed compatibility.

 index.php |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/index.php b/index.php
index ec2bf9b..a541908 100644
--- a/index.php
+++ b/index.php
@@ -16,6 +16,14 @@ include ('lib/core.php');
 $uri_a = explode('?', $_SERVER['REQUEST_URI']);
 $uri = trim (strtolower ($uri_a[0]), '/');
 
+/* compatibility with old website */
+if (isset ($_GET['feed']) && $_GET['feed'] == 'rss2')
+{
+  header ('HTTP/1.1 301 Moved Permanently');
+  header ('Location: http://www.xfce.org/feed');
+  exit;
+}
+
 /* lookup to page from the uri */
 $content_file = lookup_page ($uri);
 


More information about the Xfce4-commits mailing list