WordPress.org

Forums

Google XML Sitemaps
[resolved] Sitemap is listing relative URLs instead of full URLs (3 posts)

  1. ianorm
    Member
    Posted 1 year ago #

    Generated a sitemap for my URL but the pages and posts are listed as relative URLs (ie /post-name/ instead of http://domain.com/post-name/).

    I checked the site configuration and it has correct site/home URLs and no trailing slash. When you look at each individual page or post itself the meta tags only display the relative URL. Site configuration is in wp-config.php

    Any idea what could be causing this?

    http://wordpress.org/plugins/google-sitemap-generator/

  2. kadesmith
    Member
    Posted 1 year ago #

    Did you ever find a solution? Seeing the same behavior on my site.

  3. ianorm
    Member
    Posted 1 year ago #

    Hi Kade,

    I was able to track back the problem to a plug-in on the site called "Root Relative URLs" that installed automatically during the website build. Once we deactivated the plug-in, the URLs displayed correctly on the individual pages/posts and in the re-built sitemap.

    Hope that helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google XML Sitemaps
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic