Wordpress/b2rss.php
Matt Mullenweg e03f75a0b8 Cleaning up some includes.
git-svn-id: https://develop.svn.wordpress.org/trunk@1190 602fd350-edb4-49c9-b593-d223f7449a82
2004-04-27 23:17:16 +00:00

12 lines
287 B
PHP

<?php
require_once ('./wp-config.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: ' . $location . "\n");
exit;
?>