Skip to content
Skillpedia
Deploy & cloud (DevOps)75k · #2989

redirect-chain

What it does

This skill follows the redirect rules on a website and finds any address that passes through more than one redirect. It is for site owners and developers who have moved pages or changed domains over time.

When to use it

  • ✓When you ask the agent to check a website for redirect chains after a site move or redesign.
  • ✓When pages load slowly or search engines seem to stop before reaching a final page.
  • ✓When you upgrade a content system and want to make sure old addresses still lead straight to the right page.

Skill link

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/redirect-chain/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/redirect-chain/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“I moved my site a few times. Can you check for redirect chains and make each old address go straight to the final page?”

5 new skills a week. 1 minute to read.

How it works

The agent follows each redirect rule and records every hop, along with the response code at each step. It then updates the first redirect so it points directly to the final address, and checks that the result is one redirect followed by a working page.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Avoid multi-hop redirect chains

Redirect chains waste crawl budget, reduce PageRank flow to destination pages, and add latency that harms user experience—Googlebot may abandon long chains entirely, leaving destination pages undiscovered.

Quick Reference

  • A redirect chain is A→B→C — Googlebot may stop following after 5 hops
  • Each hop loses PageRank and adds page load latency
  • Flatten chains by pointing A directly to C with a single 301
  • Audit after every URL migration to catch newly created chains

Check

Follow all redirect rules configured on the site. Identify any URL where the redirect target itself also redirects (chain of 2+ hops). Report the full chain (URL A → URL B → URL C → final), the number of hops, and the HTTP response code at each step.

Fix

For each redirect chain, update the first redirect to point directly to the final destination URL. Example: if A→B→C, update A's redirect to point directly to C, eliminating the B hop. Verify the chain is gone by following the URL and confirming a single 301 or 302 followed by a 200.

Explain

A redirect chain occurs when page A redirects to page B, which also redirects to page C. Googlebot follows redirect chains up to a certain number of hops (reportedly 5), then stops—meaning the final destination may not be crawled. Each redirect also loses a portion of the PageRank that would have passed through a direct link.

Code Review

Test each redirect rule configured on the server. For each source URL, follow all redirect hops and record the full chain. Flag any chain with 2 or more hops (source → intermediate → final). Check for redirect loops (A→B→A). Verify that the final destination returns 200. Report: source URL, intermediate URLs, number of hops, final URL, and HTTP status at each step.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/seo/redirect-chain

FAQ

Why are redirect chains a problem?

Each extra hop adds delay and loses some ranking value, and the skill says Googlebot may stop following long chains.

Does the skill use a specific hop limit?

The skill says Googlebot reportedly stops after about five hops.

When should I audit redirects?

The skill recommends checking after every URL migration so new chains are caught.

Details

Original description by the author

Use when auditing site redirects after URL migrations, domain changes, or CMS upgrades. Applies to any site that has had multiple rounds of structural changes over time.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#2989
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills