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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentās skills folder.
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.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2990
- License
- MIT
- Updated
- 10/31/2026
Comments
- ā¦
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
competitive-platform-analysis
280kHelps understand your competitors. It identifies, categorizes, and filters competing companies before any deeper analysis.
competitive-report-structure
280kCreates comprehensive competitor reports. It combines information to show the overall landscape, recommendations, and helps align the team.
lead-intelligence
280kHelps your agent find and contact important people. It analyzes leads, suggests approaches, and manages outreach via email and social media.