mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
9dc65ab2db
git-svn-id: http://svn.automattic.com/wordpress/trunk@1190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
12 lines
289 B
PHP
12 lines
289 B
PHP
<?php
|
|
require_once ('./wp-config.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: ' . $location . "\n");
|
|
exit;
|
|
?>
|