本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)75k · #2989

redirect-chain

できること

このスキルは、ウェブサイトのリダイレクトのルールをたどり、複数回のリダイレクトを経由するアドレスを見つけます。ページやドメインを長年にわたって移動してきたサイトの運営者や開発者向けです。

使う場面

  • ✓サイトの移転やリニューアルの後に、リダイレクトの連鎖を確認するようエージェントに頼むとき。
  • ✓ページの読み込みが遅く、検索エンジンが最終ページに届く前に止まっているように見えるとき。
  • ✓コンテンツ管理システムを更新し、古いアドレスが正しいページへ直接届くことを確かめたいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/redirect-chain/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のサイトは何度か移転しました。リダイレクトの連鎖を確認して、古いアドレスがそれぞれ最終ページに直接届くようにしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、各リダイレクトのルールをたどり、各段階の応答コードとともにすべての移動を記録します。そして、最初のリダイレクトが最終アドレスを直接指すように更新し、結果が、1回のリダイレクトの後に正常なページが表示されることを確認します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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

よくある質問

リダイレクトの連鎖はなぜ問題ですか?

余分な移動ごとに遅れが生じ、ランキングの評価も一部失われ、このスキルによるとGooglebotは長い連鎖をたどるのをやめることがあるからです。

特定のホップ数の上限はありますか?

このスキルによると、Googlebotは約5ホップで止まると報告されています。

リダイレクトはいつ確認すべきですか?

このスキルは、新しい連鎖を見つけられるように、URLを移行するたびに確認することを勧めています。

詳細

作者による元の説明

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

人気

GitHubのスター
75k
ランキング
#2989
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル