• Resolved dakotaallenwright

    (@dakotaallenwright)


    I am getting an error message in Google Search Console specifically about the post sitemap. The error message says “Sitemap can be read, but has errors” and I believe that the issue is that Yoast is truncating the URL and not including the root domain. Because of this Google is treating the anchor text (/questions-to-ask-a-criminal-defense-lawyer-before-you-hire-them/) as the entire URL. Our web dev team looked into the issue and saw that the sitemap is built correctly, so we are thinking there is an issue with our Yoast settings. I was wondering if anyone has any ideas as to what may be causing this? Thanks everyone!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support devnihil

    (@devnihil)

    @dakotaallenwright Did you recently modify the site’s domain?

    Also, can you please confirm that in WordPress under Settings>General that the values for WordPress Address (URL) and Site Address (URL) are set correctly?

    Also, whereas the XML Sitemap should dynamically update after any modification to it, if the site or server is caching the sitemap this can cause it to not update right away. We also have additional information on this at the following link: https://kb.yoast.com/kb/sitemap-does-not-update/. If you are not seeing the sitemap as updated, we would recommend checking your caching settings and to ensure that the sitemap is being excluded from the cache.

    If you are still experiencing an issue with the sitemap not updating after checking your caching settings, you can also force a cache reset by temporarily disabling the sitemap feature, and then re-enabling. To do so please perform the following steps:

      ?In WordPress go to SEO>General>Features
      ?For ‘XML Sitemaps’ Toggle the switch to ‘Disabled.’
      ??Click ‘Save Changes.’
      ?Toggle the switch back to ‘Enabled.’
      ?Click ‘Save Changes.’

    ?We also have a guide on how to enable/disable XML Sitemaps here: https://kb.yoast.com/kb/enable-xml-sitemaps-in-the-wordpress-seo-plugin/

    Can you please try the aforementioned suggestions and letting us know whether it resolves your issue?

    Hi @dakotaallenwright ,

    We’re closing this thread because we haven’t heard back from you in a while. Should you have further questions, please open a new thread.

    Thread Starter dakotaallenwright

    (@dakotaallenwright)

    @devnihil Thanks for the suggestion. We checked those settings & reset the caches both for WPEngine & for the site map specifically, but it’s still showing the relative URL in the post site map

    I’d guess that there is PHP code which uses hook post_link to strip hostname. I see relative links in HTML code too. Please check. Probably you need to exclude this filter from sitemap requests.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sitemap Not Including Root Domain’ is closed to new replies.