Skip to content
Skillpedia
SEO75k Ā· #2990

redirect-chains

What it does

This skill checks the links between pages on your site and updates any that point to addresses which redirect. It is for site owners who have changed URLs and want their internal links to be clean.

When to use it

  • āœ“When you ask the agent to find internal links that point to redirected pages.
  • āœ“When you have finished a URL migration and want your own links updated to the new addresses.
  • āœ“When pages linked from your menus or articles load after a redirect and you want them to load directly.

Skill link

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/redirect-chains/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-chains/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

ā€œAfter I changed my URLs, some links on my site still go through redirects. Can you update them to point to the final pages?ā€

5 new skills a week. 1 minute to read.

How it works

The agent checks each internal link on the site and follows it to see if it redirects. It then updates the link's address to the final page, while keeping the redirect in place for outside links that still use the old address.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Link directly to final destination URLs

Internal links that point to redirect URLs add latency, waste crawl budget, and pass less PageRank to the destination than a direct link would—reducing the ranking potential of linked pages.

Quick Reference

  • Internal links should point directly to the final destination URL, not to a URL that redirects
  • Each redirect in a chain dilutes the PageRank passed through it
  • Update internal links after URL migrations to point to the new URLs
  • Use 301 redirects for permanent moves, but then update source links

Check

Crawl internal links across the site. For each <a href='...'> tag, follow the URL and check the HTTP response code. Flag any internal link that resolves to a 301 or 302 redirect rather than a direct 200 response. Report the source page, linked URL, and the final destination URL after following the redirect.

Fix

For each internal link pointing to a redirect URL: update the href attribute to point directly to the final destination URL (the 200-status URL after following all redirects). Keep the redirect in place for external links, but update all internal links to point directly to the canonical-url destination.

Explain

When Googlebot follows a link to a URL that then redirects to another URL, PageRank is partially lost at each hop. Google has stated that redirects dilute PageRank. Additionally, linking to redirect URLs wastes crawl budget since Googlebot must make multiple requests to reach the final content. Updating internal links to point directly to destination URLs passes full PageRank and improves crawl efficiency.

Code Review

For each internal <a href='...'> link, follow the URL and check the HTTP response code. If the response is 301 or 302, record the Location header and continue following. Report all internal links that resolve via one or more redirects before reaching a 200 response. Include: source page, link href, each redirect URL in the chain, and final destination URL.


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

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

FAQ

Should I remove the redirects?

No. The skill says to keep them for outside links, and update the internal links on your own site.

Why update internal links?

Links to redirect addresses add delay and pass less ranking value than direct links.

What output will the agent give me?

It reports the source page, the linked address, and the final destination after the redirect.

Details

Original description by the author

Use when auditing internal link structure after a URL migration, domain change, or site rebuild. Applies to any site that has had redirects in place for more than a month.

repo: thedaviddias/Front-End-Checklist

Popularity

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills