Canonical to Non-200
Pages that canonicalize to URLs which do not return a 200 status code
Priority: Medium
Impact: Negative
What issues it may cause
Google will typically ignore the canonical potentially resulting in an unwanted page in search results. If there are lots of these low value pages in search engine results pages it could devalue your site quality, impacting ranking and bounce rates.
How do you fix it
Update canonical links to point to URLs which respond with a 200 status.
What is the positive impact
Search engines will be able to process the canonical signal correctly, potentially reducing indexing issues.
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
- Variables
- cURL
query GetReportStatForCrawl(
$crawlId: ObjectID!
$reportTemplateCode: String!
$after: String
) {
getReportStat(
input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode}
) {
crawlLinks(after: $after, reportType: Basic) {
nodes {
urlFrom
urlFromTitle
urlTo
urlToTitle
urlFromDeeprank
urlFromStatusCode
urlToDeeprank
urlToStatusCode
linkType
internal
attrRel
attrType
hreflang
}
totalCount
pageInfo {
endCursor
hasNextPage
}
}
}
}
{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"canonical_to_non_200"}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"query GetReportStatForCrawl( $crawlId: ObjectID! $reportTemplateCode: String! $after: String ) { getReportStat( input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode} ) { crawlLinks(after: $after, reportType: Basic) { nodes { urlFrom urlFromTitle urlTo urlToTitle urlFromDeeprank urlFromStatusCode urlToDeeprank urlToStatusCode linkType internal attrRel attrType hreflang } totalCount pageInfo { endCursor hasNextPage } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"canonical_to_non_200"}}' https://api.lumar.io/graphql