account for query string in redirects
git-svn-id: https://develop.svn.wordpress.org/trunk@748 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
91a87d821a
commit
7b9938f084
|
@ -2,7 +2,13 @@
|
||||||
$curpath = dirname(__FILE__).'/';
|
$curpath = dirname(__FILE__).'/';
|
||||||
require_once ($curpath.'wp-config.php');
|
require_once ($curpath.'wp-config.php');
|
||||||
require_once ($curpath.WPINC.'/template-functions.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('HTTP/1.0 301 Moved Permanently');
|
||||||
header('Location: ' . get_bloginfo('rdf_url') . "\n");
|
header('Location: ' . $location . "\n");
|
||||||
exit;
|
exit;
|
||||||
?>
|
?>
|
|
@ -2,7 +2,13 @@
|
||||||
$curpath = dirname(__FILE__).'/';
|
$curpath = dirname(__FILE__).'/';
|
||||||
require_once ($curpath.'wp-config.php');
|
require_once ($curpath.'wp-config.php');
|
||||||
require_once ($curpath.WPINC.'/template-functions.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('HTTP/1.0 301 Moved Permanently');
|
||||||
header('Location: ' . get_bloginfo('rss_url') . "\n");
|
header('Location: ' . $location . "\n");
|
||||||
exit;
|
exit;
|
||||||
?>
|
?>
|
|
@ -2,7 +2,13 @@
|
||||||
$curpath = dirname(__FILE__).'/';
|
$curpath = dirname(__FILE__).'/';
|
||||||
require_once ($curpath.'wp-config.php');
|
require_once ($curpath.'wp-config.php');
|
||||||
require_once ($curpath.WPINC.'/template-functions.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('HTTP/1.0 301 Moved Permanently');
|
||||||
header('Location: ' . get_bloginfo('rss2_url') . "\n");
|
header('Location: ' . $location . "\n");
|
||||||
exit;
|
exit;
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue