WordPress.org

Support

Support » Plugins and Hacks » XML Sitemaps issue with Root Relative URLs plugin

XML Sitemaps issue with Root Relative URLs plugin

  • WordPress version: 3.5.1
    WordPress SEO version: 1.3.4.4

    Some of the XML sitemaps are only showing the relative URL instead of the full URLs in sitemap_index.xml

    This can worked around by editing class-sitemaps.php on line 556 to:
    if (strpos($url[‘loc’], “http”) === 0 ) {
    $output .= “\t\t<loc>” . $url[‘loc’] . “</loc>\n”;
    } else {
    $output .= “\t\t<loc>http://” . $_SERVER[‘HTTP_HOST’] . $url[‘loc’] . “</loc>\n”;
    }

    http://wordpress.org/extend/plugins/wordpress-seo/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘XML Sitemaps issue with Root Relative URLs plugin’ is closed to new replies.