diff --git a/wp-blog-header.php b/wp-blog-header.php index 8ca6d65c62..a0da6fe9f4 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -33,7 +33,7 @@ if (! empty($_SERVER['PATH_INFO'])) { foreach ($rewrite as $match => $query) { // If the request URI is the anchor of the match, prepend it // to the path info. - if (strpos($match, $req_uri) === 0) { + if ((! empty($req_uri)) && (strpos($match, $req_uri) === 0)) { $pathinfomatch = $req_uri . '/' . $pathinfo; }