redirect-chains
ما الذي تفعله
تتحقق هذه المهارة من الروابط بين صفحات موقعك، وتحدّث أي رابط يشير إلى عنوان يُعاد توجيهه. وهي موجهة لأصحاب المواقع الذين غيّروا عناوينهم ويريدون روابط داخلية نظيفة.
متى تستخدمها
- ✓عندما تطلب من الوكيل إيجاد الروابط الداخلية التي تشير إلى صفحات مُعاد توجيهها.
- ✓عندما تنتهي من نقل العناوين وتريد تحديث روابطك الخاصة إلى العناوين الجديدة.
- ✓عندما تُحمَّل صفحات مرتبطة من القوائم أو المقالات بعد إعادة توجيه وتريدها أن تُحمَّل مباشرة.
رابط المهارة
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/redirect-chains/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“بعد تغيير عناوين موقعي، ما زالت بعض الروابط تمر عبر إعادة توجيه. هل يمكنك تحديثها لتشير إلى الصفحات النهائية؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يفحص الوكيل كل رابط داخلي في الموقع ويتبعه ليرى إن كان يُعاد توجيهه. ثم يحدّث عنوان الرابط إلى الصفحة النهائية، ويُبقي إعادة التوجيه قائمة للروابط الخارجية التي ما زالت تستخدم العنوان القديم.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من 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
الأسئلة الشائعة
هل يجب حذف إعادات التوجيه؟
لا. تقول المهارة إن على المرء الإبقاء عليها للروابط الخارجية، وتحديث الروابط الداخلية في موقعه.
لماذا تُحدَّث الروابط الداخلية؟
الروابط التي تشير إلى عناوين مُعاد توجيهها تضيف تأخيرًا وتنقل قيمة ترتيب أقل من الروابط المباشرة.
ما المخرجات التي سيعطيني إياها الوكيل؟
يُبلغ عن الصفحة المصدر والرابط المستهدف والوجهة النهائية بعد إعادة التوجيه.
التفاصيل
الوصف الأصلي من المؤلف
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.
الشعبية
- نجوم GitHub
- 75k
- الترتيب
- #2990
- الترخيص
- MIT
- آخر تحديث
- 31/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
frontendchecklist
75kيفحص شيفرة الواجهة الأمامية والصفحات الحية مقابل أكثر من 380 قاعدة للوصول وسرعة الأداء وتحسين محركات البحث والأمان، بأداة سطر أوامر.
frontend-checklist-global
75kيدقق مشروع الواجهة الأمامية وفق كل قواعد Front-End Checklist البالغ عددها 386، ويقدم إصلاحًا محددًا لكل مشكلة وجدت.
404-page
75kيتأكد من أن صفحة الصفحات غير الموجودة تقدم روابط مفيدة وتُرجع رمز حالة 404 حقيقيًا، لمساعدة الزوار التائهين على إيجاد طريقهم.
about-page
75kيراجع ما إذا كان لموقعك صفحة «من نحن» واضحة تشرح من يديره، لبناء الثقة لدى الزوار ومحركات البحث.
مهارات مشابهة
competitive-platform-analysis
280kيساعدك على فهم منافسيك. يحدد الشركات المنافسة ويصنّفها ويصفيها قبل أي تحليل أعمق.
competitive-report-structure
280kينشئ تقارير شاملة عن المنافسين. يجمع المعلومات ليوضح الصورة العامة للسوق والتوصيات، ويساعد على توحيد رؤية الفريق.
lead-intelligence
280kيساعد وكيلك على إيجاد الأشخاص المهمين والتواصل معهم. يحلل العملاء المحتملين، ويقترح أساليب الوصول إليهم، ويدير التواصل عبر البريد ووسائل التواصل الاجتماعي.