Error Pages with Backlinks
Pages which have backlinks but which return an error status code.
Priority: Critical
Impact: Negative
What issues it may causeโ
These URLs have backlinks from external websites but don't return a 200 status code or a valid redirect which means that PageRank or link equity which may have been passed by those backlinks is lost.
How do you fix itโ
- Consider restoring the page so it returns a 200 response.
- Consider redirecting the URL to an equivalent working page which responds with a 200 status
What is the positive impactโ
The rankings of other pages may be improved as PageRank can be passed to other pages and distributed throughout the site.
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 GetReportForCrawl($crawlId: ObjectID!, $reportTemplateCode: String!) {
getCrawl(id: $crawlId) {
reportsByCode(
input: {
reportTypeCodes: Basic
reportTemplateCodes: [$reportTemplateCode]
}
) {
rows {
nodes {
... on CrawlUrls {
pageTitle
url
description
foundAtUrl
backlinkDomainCount
backlinkCount
deeprank
level
httpStatusCode
failedReason
backlinkCount
gaVisits
foundInGoogleAnalytics
foundInGoogleSearchConsole
foundInBacklinks
foundInList
foundInLogSummary
foundInWebCrawl
foundInSitemap
}
}
}
}
}
}
{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"backlink_pages_with_errors"}
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 GetReportForCrawl($crawlId: ObjectID!, $reportTemplateCode: String!) { getCrawl(id: $crawlId) { reportsByCode( input: { reportTypeCodes: Basic reportTemplateCodes: [$reportTemplateCode] } ) { rows { nodes { ... on CrawlUrls { pageTitle url description foundAtUrl backlinkDomainCount backlinkCount deeprank level httpStatusCode failedReason backlinkCount gaVisits foundInGoogleAnalytics foundInGoogleSearchConsole foundInBacklinks foundInList foundInLogSummary foundInWebCrawl foundInSitemap } } } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"backlink_pages_with_errors"}}' https://api.lumar.io/graphql