This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Not WPML issue
This topic contains 8 replies, has 2 voices.
Last updated by Nicolas V. 1 year, 8 months ago.
Assisted by: Nicolas V..
Author | Posts |
---|---|
August 3, 2023 at 4:43 am #14145517 | |
lijiJ |
I am receiving an error in the SEMRush site audit report, the error is No self-referencing hreflang. Please find the attached screenshot and help me with this to resolve the issue. |
August 3, 2023 at 12:53 pm #14149713 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hello, Welcome to the WPML support forum. I checked the source code of hidden link (the url in your screenshot) and everything seems to be in order. 1. Hreflang: <link rel="alternate" hreflang="ar" href="<em><u>hidden link</u></em>" /> <link rel="alternate" hreflang="en" href="<em><u>hidden link</u></em>" /> <link rel="alternate" hreflang="x-default" href="<em><u>hidden link</u></em>" /> 2. Canonical <link rel="canonical" href="<em><u>hidden link</u></em>" /> Everything is in order so here are my recommendations: 2. Purge all your caches (including server caches and CDN) 3. Rescan your site with SEMRush. If the issue persist, please ask for more details and share them in this ticket. |
August 8, 2023 at 4:55 am #14166679 | |
lijiJ |
still, it shows the same error even after doing all the recommendations. |
August 8, 2023 at 3:15 pm #14170465 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hello, Can you please share more details with us? I would recommend to contact their support to know exactly what is the issue here. I checked again and the hreflangs I shared in my previous answer are still here. So I don't know how they can claim that the "self referencing hreflang" is missing when I can confirm that <link rel="alternate" hreflang="ar" href="hidden link" /> is in the source code! Do you use some sort of automatic redirection depending on the browser language? Maybe SEMRush Bot/crawler is redirected automatically to your English version? Looking at your debug file, that wouldn't be related to WPML as I can see that the option "WPML > Languages > Browser language redirect" is disabled. |
August 9, 2023 at 6:04 am #14172907 | |
lijiJ |
No...we are not using any automatic redirection plugins. |
August 9, 2023 at 1:37 pm #14176033 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hello, Thanks for the update. Please come back to me when their support give you more information about that warning because it doesn't reflect what you have in your source code. |
August 10, 2023 at 10:43 am #14181675 | |
lijiJ |
To whom do I have to contact? SEMRush? |
August 10, 2023 at 12:46 pm #14182453 | |
lijiJ |
Hi, I contacted the SEMRush support, please find their reply If we compare the link that our crawler found, it's hidden link without the trailing slash at the end. Our bot will compare the exact URL and mark it as an error, since the / is not in the normal path! |
August 10, 2023 at 5:20 pm #14184371 | |
Nicolas V. Supporter
Languages: English (English ) French (Français ) Timezone: America/Lima (GMT-05:00) |
Hello, Thanks for the details. You shouldn't have both URLs (with and without trailing slash). I see that you're using Rank Math for your SEO. They actually have a tutorial to make sure all your URLs have this trailing slash: hidden link |