Redirect Loops
URL redirect chains which redirect back to themselves.
Priority: Critical
Impact: Negative
What issues it may cause
The browser will show an unfriendly redirect error message to users resulting in a poor user experience and increase the chances of an exit.
Search engines will not be able to process the redirect chain, so any link authority passed through the original link to the first step in the redirect chain will be lost.
How do you fix it
The redirect chain should be reviewed to determine the cause of the loop, and the redirect steps updated to ensure they end in a page with a 200 response.
What is the positive impact
Redirect chains are able to be crawled, reducing crawl budget waste and allowing PageRank to be conserved.
User experience will be improved, leading to a reduction in bounce/exit rates.
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 {
url
redirectChain
redirectedToUrl
foundAtUrl
deeprank
level
redirectCount
isRedirectLoop
metaRedirect
redirectedToStatusCode
foundInGoogleAnalytics
foundInGoogleSearchConsole
foundInBacklinks
foundInList
foundInLogSummary
foundInWebCrawl
foundInSitemap
}
}
}
}
}
}
{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"redirection_loop"}
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 { url redirectChain redirectedToUrl foundAtUrl deeprank level redirectCount isRedirectLoop metaRedirect redirectedToStatusCode foundInGoogleAnalytics foundInGoogleSearchConsole foundInBacklinks foundInList foundInLogSummary foundInWebCrawl foundInSitemap } } } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"redirection_loop"}}' https://api.lumar.io/graphql