how to solve issues with incorrect hreflang links on semrush?

Highlighted
New Member
1 0 0

While runing the site audit on semrush, I found some issue regarding incorrect hreflang tags. While i search on depth about the reason behind it. I got that the page from the different country has no page with same url and giving the not found page .

Is there any conditions we can apply to fix this hreflang tag issue?

Here is the hreflang code i have used for my site:

<link rel="alternate" href="{{ canonical_url | replace: shop.domain, 'www.abc.com.au' }}" hreflang="x-default" />

<link rel="alternate" href="{{ canonical_url | replace: shop.domain, 'www.abc.com.au' }}" hreflang="en-au" />

<link rel="alternate" href="{{ canonical_url | replace: shop.domain, 'abc.co.uk' }}" hreflang="en-gb" />

<link rel="alternate" href="{{ canonical_url | replace: shop.domain, 'www.abc.com.au' }}" hreflang="en" />

0 Likes