Skip to main content

Hreflang to Non-200 URLs

URLs in hreflang tags which return a non-200 status code.

Priority: Medium

Impact: Negative

What issues it may cause

An hreflang where the target URL does not return a 200 status will be ignored by search engines.

The URLs are likely to be crawled by search engines in the process of validating the hreflangs resulting in some wasted crawl budget.

How do you fix it

Update the hreflang target so it's pointing to the relevant page with a 200 response code.

What is the positive impact

Search engines may show the alternate language page in search results for users where appropriate.

Crawl budget can be saved so other pages may be crawled more frequently, or save on server costs.

How to fetch the data for this report template

You will need to run a crawl for report template to generate report. When report has been generated and you have crawl id you can fetch data for the report using the following query:

query GetReportStatForCrawl(
$crawlId: ObjectID!
$reportTemplateCode: String!
$after: String
) {
getReportStat(
input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode}
) {
crawlLinks(after: $after, reportType: Basic) {
nodes {
urlTo
urlToTitle
relUrlFrom
urlFrom
urlFromTitle
urlToStatusCode
urlToDeeprank
urlFromDeeprank
hreflang
linkType
attrRel
}
totalCount
pageInfo {
endCursor
hasNextPage
}
}
}
}

Try in explorer