Chuyển đến nội dung
Skillpedia
SEO75k · #2990

redirect-chains

Skill này làm gì

Skill này kiểm tra các liên kết giữa các trang trên website và cập nhật những liên kết trỏ tới địa chỉ có chuyển hướng. Skill dành cho chủ website đã đổi URL và muốn liên kết nội bộ gọn gàng.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu agent tìm các liên kết nội bộ trỏ tới trang đã chuyển hướng.
  • ✓Khi bạn đã hoàn tất việc chuyển URL và muốn cập nhật liên kết nội bộ của mình sang địa chỉ mới.
  • ✓Khi các trang được liên kết từ menu hoặc bài viết của bạn tải sau một chuyển hướng và bạn muốn chúng tải trực tiếp.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/redirect-chains/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Sau khi tôi đổi URL, một số liên kết trên website vẫn đi qua chuyển hướng. Bạn có thể cập nhật chúng để trỏ tới các trang cuối không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent kiểm tra từng liên kết nội bộ trên website và theo dõi xem nó có chuyển hướng không. Sau đó agent cập nhật địa chỉ liên kết thành trang cuối, nhưng giữ chuyển hướng cho các liên kết bên ngoài vẫn dùng địa chỉ cũ.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

Câu hỏi thường gặp

Tôi có nên xóa các chuyển hướng không?

Không. Skill nói nên giữ chúng cho liên kết bên ngoài, và cập nhật các liên kết nội bộ trên site của bạn.

Vì sao nên cập nhật liên kết nội bộ?

Liên kết tới địa chỉ chuyển hướng gây trễ và truyền ít giá trị xếp hạng hơn so với liên kết trực tiếp.

Agent sẽ đưa ra kết quả gì?

Nó báo trang nguồn, địa chỉ được liên kết và đích cuối cùng sau chuyển hướng.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2990
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự