Skillpedia
النشر والسحابة (DevOps)75k · #2989

redirect-chain

ما الذي تفعله

تتبع هذه المهارة قواعد إعادة التوجيه في الموقع، وتجد أي عنوان يمر بأكثر من إعادة توجيه. وهي موجهة لأصحاب المواقع والمطورين الذين نقلوا صفحاتهم أو غيّروا نطاقهم مع الوقت.

متى تستخدمها

  • ✓عندما تطلب من الوكيل فحص موقع بحثًا عن سلاسل إعادة التوجيه بعد نقل موقع أو إعادة تصميمه.
  • ✓عندما تُحمَّل الصفحات ببطء أو يبدو أن محركات البحث تتوقف قبل الوصول إلى الصفحة النهائية.
  • ✓عندما تحدّث نظام المحتوى وتريد التأكد من أن العناوين القديمة ما زالت تقود إلى الصفحة الصحيحة مباشرة.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/redirect-chain/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“نقلت موقعي عدة مرات. هل يمكنك فحص سلاسل إعادة التوجيه وجعل كل عنوان قديم يذهب مباشرة إلى الصفحة النهائية؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يتبع الوكيل كل قاعدة إعادة توجيه ويسجل كل قفزة مع رمز الاستجابة في كل خطوة. ثم يحدّث أول إعادة توجيه لتشير مباشرة إلى العنوان النهائي، ويتحقق من أن النتيجة إعادة توجيه واحدة تليها صفحة تعمل.

المحتوى التقني (ملف 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 يتوقف بحسب ما يُذكر بعد نحو خمس قفزات.

متى يجب فحص إعادات التوجيه؟

توصي المهارة بالفحص بعد كل ترحيل لعناوين الموقع، لاكتشاف السلاسل الجديدة.

التفاصيل

الوصف الأصلي من المؤلف

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
آخر تحديث
31‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة