diff --git a/b2rdf.php b/b2rdf.php index 2e6ef99bd9..6923cebfd6 100644 --- a/b2rdf.php +++ b/b2rdf.php @@ -2,7 +2,13 @@ $curpath = dirname(__FILE__).'/'; require_once ($curpath.'wp-config.php'); require_once ($curpath.WPINC.'/template-functions.php'); +if (!empty($_SERVER["QUERY_STRING"])) { + $location = get_bloginfo('rdf_url').'?'.$_SERVER["QUERY_STRING"]; +} +else { + $location = get_bloginfo('rdf_url'); +} header('HTTP/1.0 301 Moved Permanently'); -header('Location: ' . get_bloginfo('rdf_url') . "\n"); +header('Location: ' . $location . "\n"); exit; ?> \ No newline at end of file diff --git a/b2rss.php b/b2rss.php index e8c34368fb..5a2f2b9139 100644 --- a/b2rss.php +++ b/b2rss.php @@ -2,7 +2,13 @@ $curpath = dirname(__FILE__).'/'; require_once ($curpath.'wp-config.php'); require_once ($curpath.WPINC.'/template-functions.php'); +if (!empty($_SERVER["QUERY_STRING"])) { + $location = get_bloginfo('rss_url').'?'.$_SERVER["QUERY_STRING"]; +} +else { + $location = get_bloginfo('rss_url'); +} header('HTTP/1.0 301 Moved Permanently'); -header('Location: ' . get_bloginfo('rss_url') . "\n"); +header('Location: ' . $location . "\n"); exit; ?> \ No newline at end of file diff --git a/b2rss2.php b/b2rss2.php index 4844d49966..846ad64efe 100644 --- a/b2rss2.php +++ b/b2rss2.php @@ -2,7 +2,13 @@ $curpath = dirname(__FILE__).'/'; require_once ($curpath.'wp-config.php'); require_once ($curpath.WPINC.'/template-functions.php'); +if (!empty($_SERVER["QUERY_STRING"])) { + $location = get_bloginfo('rss2_url').'?'.$_SERVER["QUERY_STRING"]; +} +else { + $location = get_bloginfo('rss2_url'); +} header('HTTP/1.0 301 Moved Permanently'); -header('Location: ' . get_bloginfo('rss2_url') . "\n"); +header('Location: ' . $location . "\n"); exit; ?> \ No newline at end of file