Changeset 748
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2rdf.php
r628 r748 3 3 require_once ($curpath.'wp-config.php'); 4 4 require_once ($curpath.WPINC.'/template-functions.php'); 5 if (!empty($_SERVER["QUERY_STRING"])) { 6 $location = get_bloginfo('rdf_url').'?'.$_SERVER["QUERY_STRING"]; 7 } 8 else { 9 $location = get_bloginfo('rdf_url'); 10 } 5 11 header('HTTP/1.0 301 Moved Permanently'); 6 header('Location: ' . get_bloginfo('rdf_url'). "\n");12 header('Location: ' . $location . "\n"); 7 13 exit; 8 14 ?> -
trunk/b2rss.php
r628 r748 3 3 require_once ($curpath.'wp-config.php'); 4 4 require_once ($curpath.WPINC.'/template-functions.php'); 5 if (!empty($_SERVER["QUERY_STRING"])) { 6 $location = get_bloginfo('rss_url').'?'.$_SERVER["QUERY_STRING"]; 7 } 8 else { 9 $location = get_bloginfo('rss_url'); 10 } 5 11 header('HTTP/1.0 301 Moved Permanently'); 6 header('Location: ' . get_bloginfo('rss_url'). "\n");12 header('Location: ' . $location . "\n"); 7 13 exit; 8 14 ?> -
trunk/b2rss2.php
r628 r748 3 3 require_once ($curpath.'wp-config.php'); 4 4 require_once ($curpath.WPINC.'/template-functions.php'); 5 if (!empty($_SERVER["QUERY_STRING"])) { 6 $location = get_bloginfo('rss2_url').'?'.$_SERVER["QUERY_STRING"]; 7 } 8 else { 9 $location = get_bloginfo('rss2_url'); 10 } 5 11 header('HTTP/1.0 301 Moved Permanently'); 6 header('Location: ' . get_bloginfo('rss2_url'). "\n");12 header('Location: ' . $location . "\n"); 7 13 exit; 8 14 ?>
Note: See TracChangeset
for help on using the changeset viewer.