Make WordPress Core

Changeset 748 for trunk/b2rdf.php


Ignore:
Timestamp:
01/10/2004 12:56:48 AM (21 years ago)
Author:
alex_t_king
Message:

account for query string in redirects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2rdf.php

    r628 r748  
    33require_once ($curpath.'wp-config.php');
    44require_once ($curpath.WPINC.'/template-functions.php');
     5if (!empty($_SERVER["QUERY_STRING"])) {
     6    $location = get_bloginfo('rdf_url').'?'.$_SERVER["QUERY_STRING"];
     7}
     8else {
     9    $location = get_bloginfo('rdf_url');
     10}
    511header('HTTP/1.0 301 Moved Permanently');
    6 header('Location: ' . get_bloginfo('rdf_url') . "\n");
     12header('Location: ' . $location . "\n");
    713exit;
    814?>
Note: See TracChangeset for help on using the changeset viewer.