mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 01:39:37 +01:00
9fe4b92e20
git-svn-id: http://svn.automattic.com/wordpress/trunk@748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
14 lines
385 B
PHP
14 lines
385 B
PHP
<?php
|
|
$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: ' . $location . "\n");
|
|
exit;
|
|
?>
|