Skip Navigation

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: 

This topic contains 4 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year ago.

Assisted by: Prosenjit Barman.

Author Posts
November 3, 2023 at 4:26 pm #14727289

loaiH

Dears,
I made auditing by semruch and shows this issue

6501 hreflang conflicts within page source code
About this issue: If you're running a multilingual website, it is necessary to help users from other
countries find your content in the language that is most appropriate for them. This is where the
hreflang (rel="alternate" hreflang="x") attribute comes in handy. This attribute helps search
engines understand which page should be shown to visitors based on their location.
It is very important to properly synchronize your hreflang attributes within your page's source
code, otherwise you may experience unexpected search engine behavior. For more information,
see this article hidden link. How to fix: To
avoid any conflicts, we recommend that you review your hreflang attributes within your page's
source code and fix any of the following issues: 1.
Conflicting hreflang and rel=canonical URLs. 2. Conflicting hreflang URLs.
3. No self-referencing hreflang URLs.

can you help me to solve it

November 6, 2023 at 6:59 am #14734837

loaiH

any updates

November 6, 2023 at 8:50 am #14735659

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support. Sorry for the delay in responding due to the weekend.

I understand the issue you're having. If Hreflang is configured correctly in "WPML → Languages → Edit languages", WPML will retrieve the value and adjust the Hreflang for each translated post accordingly. No special adjustments are required for this.

Since the Semrush audit shows an Hreflang error, could you please share the detailed report in your next response? Typically, the audit report includes links, and each link provides a specific reason for the error. If you could provide screenshots of the links that clearly display the reasons, it would be greatly helpful in diagnosing the issue.

I will check and guide you accordingly. Looking forward to your response.

Best regards,
Prosenjit

November 11, 2023 at 10:59 am #14781607

loaiH

13561 hreflang conflicts within page source code
About this issue: If you're running a multilingual website, it is necessary to help users from other
countries find your content in the language that is most appropriate for them. This is where the
hreflang (rel="alternate" hreflang="x") attribute comes in handy. This attribute helps search
engines understand which page should be shown to visitors based on their location.
It is very important to properly synchronize your hreflang attributes within your page's source
code, otherwise you may experience unexpected search engine behavior. For more information,
see this article hidden link. How to fix: To
avoid any conflicts, we recommend that you review your hreflang attributes within your page's
source code and fix any of the following issues: 1.
Conflicting hreflang and rel=canonical URLs. 2. Conflicting hreflang URLs.
3. No self-referencing hreflang URLs.

Screenshot 2023-11-11 135832.png
November 14, 2023 at 3:48 am #14793301

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
I hope you're doing well. Sorry for the delay in responding due to the weekend.

Thank you for sharing the screenshot. It appears that the "self-referencing" error was visible on certain English Category pages. Upon reviewing one of these categories in detail, I found that the Page URL and language code are accurately specified in the hreflang tag. There don't seem to be any errors in the Hreflang tag configuration.

Occasionally, this problem can arise from omitting the trailing slash in the URL. However, in your instance, the URL seems to be properly set up.

Please check this screenshot for a better understanding. : hidden link

Please also review the guidelines provided by the Semrush authority to prevent such issues.

- hidden link

If you examine the screenshot alongside the guidelines, you'll see that everything has been set up correctly.

I also examined the page that includes a query parameter (hidden link) and noticed that its "canonical tag" correctly references the page without the parameter. This is the standard behavior. Search engines will recognize this canonical version as the primary one and will index it accordingly. The page with the query parameter won't be indexed to avoid penalties for duplicate content, as search engines typically view such instances unfavorably.

By following the article below, you can verify whether the canonical is added properly there or not.

- hidden link

So, I think the SEO analysis is showing a False-positive report in this case. As everything is set correctly, rest assured that the search engine will index the page correctly. If you believe there is a page that is missing it's self-referencing hreflang, please review the source code of the page manually if indeed it's missing it and update me here, please. You can also consult with SemRush support regarding this matter.

Please let me know if you need further assistance in this matter. I will be happy to help.

Best Regards,
Prosenjit