Sitemap – This is not a valid URL. Please correct it and resubmit.

#127697
Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    This issue seems like a domain encoding issue. I have already shared this to our dev team and will get back to you as soon as possible.

    Thank you, and please don’t hesitate to contact us if you need further assistance.

    Is there a timeline since it’s affecting google search console?

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Looks like the working ones are full URLs (including domain and schema https etc) whilst the ones that are not working are relative URLs. – Is there a timeline on when this might be fixed please?

    I have added WordPress credentials in the sensitive data.

    I have enabled English for your user in WordPress (as it was Japanese) – let me know if there’s anything I can do, and the status of this please.

    I didn’t hear anything back yet – can you please address this issue?

    Hello,

    Please give us sometime to test and check this and let you know.

    Looking forward to helping you.

    Hello,

    The Make Paths Relative plugin active on your site is changing the Sitemap URLs which is causing the issue. Please contact the plugin author and ask them to fix this issue in their plugin by not changing the URLs in the Sitemap.

    For now, to fix the issue on your site, I have added following filter code to your theme’s functions.php file:

    
    add_filter( 'rank_math/sitemap/xml_post_url', function( $url, $post){
    	$site_url = site_url();	
    	if ( strpos( $url, $site_url ) === false
          && isset( $url[0] ) && $url[0] == '/' ) {
          return $site_url . $url;
    	}
    
        return $url;
    }, 100, 2 );
    

    This seemed to have fixed the issue. Can you please confirm?

    Thank you.

    Works well! thank you!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Sitemap – This is not a valid URL. Please correct it and resubmit.’ is closed to new replies.