Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
The redirect of the sitemap.org link in the sitemaps should not affect your website since its purpose is only to be submitted to your Google Search Console account and not to be displayed on the search engines.
However, to change the link in the sitemaps, you may edit this file in Rank Math on Line 235 and change the URL there:
/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/sitemap.xsl
Please note that we always recommend creating a backup first when working/modifying plugin files.
Also, the modification should be done again every time the plugin updates.
Hope that helps.
Thank you.
Hi Reinelle, thank you for the advice.
I think you mean to edit the file seo-by-rank-math/includes/modules/sitemap/sitemap-xsl.php which has the line you referenced:
printf(
wp_kses_post(
/* translators: link to rankmath.com */
__( 'Learn more about <a href="%s" target="_blank">XML Sitemaps</a>.', 'rank-math' )
),
'http://sitemaps.org'
);
I see how this would patch the problem but don’t you agree that it doesn’t make sense for an HTTPS document such as this sitemap to link directly to an HTTP resource http://sitemaps.org, which returns a permanent 301 redirect to https://sitemaps.org?
Would you argue that it is more correct to have an HTTP, or an HTTPS url?
Doesn’t it make more sense for Rank Math to update the file to point to the HTTPS version?
Note: This is a different situation to the other http:// urls in that file, the xmlns
attributes of the <xsl>
around line 20. The concern here is URLs in the generated sitemap output (which are being scanned by ahrefs) and not URLs used by the XSL processor that generates the sitemap XML output.
Thanks
Nick
Hello,
Thank you for your patience.
Yes, that is the file you can update the link of sitemaps.org and it will reflect on the sitemaps as well.
We have also forwarded this to our development team for evaluation and we will update you as well when we include this in our updates.
We would appreciate your kind patience about this matter.
Looking forward to helping 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.