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.

This topic contains 1 reply, has 2 voices.

Last updated by Itamar 4 months, 1 week ago.

Assigned support staff: Itamar.

Author Posts
June 3, 2019 at 12:57 pm #3942507

enochP

Hello,

Site is configured in semrush.com(seo auditing tool) and when I run test on semrush getting errors that "Conflicting hreflang and rel=canonical"

hidden link is our staging site and sunpro.co is our live site.

June 3, 2019 at 8:22 pm #3945951

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

I'm not sure why the tool that you are using to check your main domain (hidden link) indicated the following issues.
1. Conflicting hreflang and rel=canonical
2. No self-referencing hreflang
I cannot see those problems when I view the source code of your page. I do see a self-referencing hreflang. And I can see that the canonical URL is pointing to itself. Please see the attached screenshot canonical-hreflang-ok.jpg. Even when I check your domain with the following online service, it doesn't find a problem.
hidden link
Please see the attached screenshot no-hreflang-issue.jpg
I've also checked the other language of your homepage and couldn't find a problem there.
The following article explains in the right way, what should be the correct case when your site uses both hreflang and rel-canonical tags.
hidden link

Can you see that things are actually correct on your site?

Regards,
Itamar.

The topic ‘[Closed] Conflicting hreflang and rel=canonical errors in semrush’ is closed to new replies.