Hello,
I’m sorry to hear about the issue you’re facing with the hreflang relative URL on your WordPress site. It seems that some pages are missing the “https” and instead showing “//” directly.
To fix this issue, you can try the following steps:
-
Changing WordPress Address & Site Address: Navigate to Settings → General → WordPress Address inside the WordPress admin area and check if the address points to the correct version of your website. Also, ensure that the Site Address points out the URL where users can reach your website. Make sure both these options are configured to your website’s correct version (www or non-www).
-
Check for Relative URLs in Content: Ensure that there are no relative URLs in your content that might be causing this issue. You can use a plugin like Better Search Replace to search for and replace any instances of “//” with “https://rankmath.com/kb/translated-pages-not-in-sitemap/
If the issue persists after trying these steps, please feel free to assign this ticket to our support team using the available buttons, and we will be happy to assist you further.
Thank you for bringing this to our attention!
Sources:
Why Are Posts Redirecting to www or Non-www Incorrectly?
Why Are My Translated Pages Not in the Sitemap? » Rank Math
Multilingual SEO with Rank Math SEO & WPML » Rank Math
How to Fix “Duplicate, Google Chose Different Canonical than User” » Rank Math
How to Fix “Crawled – Currently Not Indexed” Error in Google Search Console » Rank Math
both of our wordppress address(url) & site address(url) is already https://codingbee.id, but the problem is still occurs
Hello,
I can check that the hreflang tags are added with the correct URL:
However, the hreflang tags are not controlled by our plugin. If the issue persists on your end, you should contact the support of the translation plugin or check the settings of the Optimization plugin you are using on your site to fix the issue.
Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.
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.