trailing-slash
यह क्या करती है
यह स्किल जाँचती है कि साइट एक ही URL शैली इस्तेमाल करती है या नहीं, अंत में slash के साथ या बिना। यह साइट मालिकों और डेवलपर्स के लिए है जो सर्च में डुप्लिकेट पेज से बचना चाहते हैं।
कब इस्तेमाल करें
- ✓जब साइट एक ही पेज को slash वाले और बिना slash वाले पते दोनों पर दिखाती है।
- ✓जब internal links, sitemap प्रविष्टियाँ और canonical tags अलग-अलग URL शैली इस्तेमाल करते हैं।
- ✓जब साइट किसी नए प्लेटफ़ॉर्म पर चली गई हो और उसके URL नियम बदल गए हों।
Skill का लिंक
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/trailing-slash/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Google मेरे कुछ पेज दो बार दिखाता है, एक अंत में slash के साथ और एक उसके बिना। क्या आप URLs ठीक कर सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट दोनों URL रूपों को परखता है और internal links व sitemaps जाँचता है। फिर वह एक पसंदीदा शैली सुझाता है, और दूसरी से स्थायी रीडायरेक्ट।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Use trailing slashes consistently
Inconsistent trailing slashes create duplicate content — Google sees /page and /page/ as two separate URLs competing for the same ranking, splitting PageRank between them.
Quick Reference
- Pick one convention — trailing slash or no trailing slash — and enforce it site-wide with 301 redirects
- Both
/page/and/pagemust not return HTTP 200; one must redirect to the other - Set
rel="canonical"to the preferred version on all pages - Ensure all internal links, sitemaps, and canonical tags use the same convention
Check
For a sample of URLs, test both the trailing-slash and non-trailing-slash versions. Both should NOT return HTTP 200 — one must 301-redirect to the other. Check that internal links, sitemap <loc> values, and canonical tags all use the same convention consistently.
Fix
Choose a canonical URL convention. Add server or framework redirect rules so the non-preferred variant permanently redirects (301) to the preferred one. Update all internal links, canonical tags, and sitemap entries to use the preferred format.
Explain
Explain why /page and /page/ are treated as distinct URLs by default, how this creates duplicate content, and how 301 redirects and canonical tags resolve the ambiguity.
Code Review
Review metadata generation, rendered HTML, structured data, and response headers related to Use trailing slashes consistently. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/trailing-slash
अक्सर पूछे जाने वाले सवाल
दोनों URLs अलग क्यों माने जाते हैं?
डिफ़ॉल्ट रूप से सर्च इंजन /page और /page/ को अलग पते मानते हैं, जिससे रैंकिंग संकेत बँट जाते हैं।
डुप्लिकेट कैसे हल होते हैं?
स्किल गैर-पसंदीदा संस्करण से 301 रीडायरेक्ट और पेजों पर canonical tags सुझाती है।
क्या मुझे sitemap भी अपडेट करना चाहिए?
हाँ। स्किल कहती है कि sitemap प्रविष्टियों में पसंदीदा URL का वही फ़ॉर्मेट होना चाहिए।
जानकारी
लेखक का मूल विवरण
Use when applies to all static and dynamic websites. Use when auditing a site for duplicate content, setting up a new site, or after migrating platforms that changed URL conventions.
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #3061
- लाइसेंस
- MIT
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
frontendchecklist
75kकमांड-लाइन टूल से फ़्रंटएंड कोड और लाइव पेजों को एक्सेसिबिलिटी, स्पीड, SEO और सिक्योरिटी के 380 से ज़्यादा नियमों से जाँचती है।
frontend-checklist-global
75kफ़्रंटएंड प्रोजेक्ट को Front-End Checklist के सभी 386 नियमों से ऑडिट करती है, और हर मिली समस्या का ठोस समाधान देती है।
404-page
75kजाँचती है कि आपका गुम पेज उपयोगी लिंक देता है और सही 404 स्टेटस लौटाता है, ताकि भटके हुए विज़िटर रास्ता ढूँढ सकें।
about-page
75kजाँचती है कि आपकी साइट पर एक साफ़ About पेज है जो बताता है कि उसे कौन चलाता है, ताकि विज़िटर और सर्च इंजन का भरोसा बढ़े।
मिलती-जुलती skills
competitive-platform-analysis
280kयह competitors को समझने में मदद करता है। यह गहरी analysis से पहले competing companies को पहचानता है, उन्हें श्रेणियों में बाँटता है और छाँटता है।
competitive-report-structure
280kयह विस्तृत competitor reports बनाता है। यह जानकारी को मिलाकर पूरी market की तस्वीर और सुझाव दिखाता है, और टीम को एक दिशा में लाने में मदद करता है।
lead-intelligence
280kआपके एजेंट को ज़रूरी लोगों को खोजने और उनसे संपर्क करने में मदद करता है। यह leads का विश्लेषण करता है, तरीके सुझाता है और email व social media के ज़रिए outreach मैनेज करता है।