Error “That URL is not valid. Please correct it and resubmit.” in sitemap.

#906814
  • Resolved compraz review
    Rank Math free

    I’m having problems with the sitemap in search console, a subsitemap is giving this error: “This URL is not valid. Please correct it and resubmit.”, I’ve tried everything. I wanted to know if anyone has had this error and how it was resolved or how to work around it.

    erro

    I entered this URL in the search console: ” https://comprazreview.com/sitemap_index.xml ” but the subsitemap of my posts: ” https://comprazreview.com/post-sitemap.xml ” showed an invalid URL error .
    I use the “rank math” plugin, I’ve tested many plugins to create the sitemap and it always shows this error.

    erro 2

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We apologize for the issue you are facing with the sitemap in Google Search Console. The error message "This URL is not valid. Please correct it and resubmit." can be frustrating. Here are some steps you can take to troubleshoot and potentially resolve this issue:

    1. Validate Your Sitemap

    First, ensure that your sitemap is correctly configured. You can use the Validate XML Sitemap tool to check if there are any issues with your sitemap. Enter your sitemap URL (e.g., `https://rankmath.com/kb/configure-sitemaps/) and click VALIDATE SITEMAP. If there are no issues, you should see a success message.

    An example displaying how to validate a sitemap

    2. Check Sitemap Location

    Make sure that your sitemap is located in the root folder of your WordPress installation. The correct URL format should be:

    `https://rankmath.com/kb/configure-sitemaps/

    3. Ensure Posts Are Set to Index

    If your posts are set to noindex, it may cause your sitemap to be empty or invalid. To check this, go to Rank Math SEO → Titles & Meta and ensure that the Index checkbox is enabled for your posts.

    Index Titles and Meta settings

    4. Resubmit Your Sitemap

    After validating and ensuring everything is set up correctly, remove the existing sitemap from Google Search Console and resubmit it. You can do this by navigating to Indexing → Sitemaps in the Search Console, entering your sitemap URL again, and clicking SUBMIT.

    Submit sitemap to Google Search Console

    5. Wait for Google to Fetch

    If the error persists, it may be that Google has not yet fetched your sitemap. Sometimes, it takes time for Google to process the submitted sitemaps.

    If you continue to experience issues after trying these steps, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further. Thank you for raising this concern, and we hope this helps resolve your issue!

    Sources:
    Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
    How to Fix Submitted URL Marked ‘NoIndex’ Error » Rank Math

    Hello,

    Thank you for contacting us. We apologize for any inconvenience this issue may have caused.

    We tested all the sitemaps on your site and all were validated and no error was detected:
    https://imgur.com/v06M0iS
    https://imgur.com/302dN6L

    Please follow the steps below for initial troubleshooting:

    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article: https://rankmath.com/kb/exclude-sitemaps-from-caching/

    If the issue persists then try disabling the transient cache for the sitemap. This will make sure that your XML sitemap always reflects the latest changes on your site. Kindly add this code snippet to your site:

    
    /** 
     * Filter if XML sitemap transient cache is enabled.
     *
     * @param boolean $unsigned Enable cache or not, defaults to true
     */
    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    If you’re not sure how to add this code, you can follow this guide: https://rankmath.com/kb/wordpress-hooks-actions-filters/.

    After you add the code, please clear any cache on your site or server and submit only the main sitemap again (/sitemap_index.xml) and wait for the “Last read” date to be updated.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘Error “That URL is not valid. Please correct it and resubmit.” in sitemap.’ is closed to new replies.