WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
XML Sitemaps issue with Root Relative URLs plugin (2 posts)

  1. jj05
    Member
    Posted 1 year ago #

    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/

  2. abaisley
    Member
    Posted 12 months ago #

    Hi,

    I tried this, but it doesn't seem to have any affect. I described my full issue over on the Root Relative forum. Any ideas?

    http://wordpress.org/support/topic/using-root-relative-with-yoast-sitemaps?replies=1#post-4482157

    Thanks,

    Andrew

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic