{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-special-chars-92880b1b90a9","title":"Fix URL Special Characters for SEO","summary":"Ensure URLs contain only unreserved characters (A-Z, a-z, 0-9, `-`, `_`, `.`, `~`) to avoid crawl errors and canonicalization issues. Clean URLs by replacing spaces with hyphens and percent-encoding reserved characters like `#`, `?`, `&`, `=`.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-special-chars-92880b1b90a9","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-special-chars-92880b1b90a9","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-special-chars-92880b1b90a9.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-special-chars-92880b1b90a9\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Before fixing URLs, validate the current URL generation logic in your CMS or framework. Replace spaces with hyphens and ensure reserved characters are percent-encoded in path segments. Set up redirects from old URLs with special characters to new clean slugs.","instructions":"---\nname: special-chars\ndescription: \"Use when applies to any site with user-generated slugs, CMS-generated URLs, or content in non-English languages. Use when auditing URLs for crawl errors or canonicalization issues.\"\nmetadata:\n  category: seo\n  priority: medium\n  difficulty: beginner\n  estimatedTime: \"10\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/seo\/special-chars\n---\n\n# URL Special Characters\n\nSpecial characters in URL paths cause inconsistent crawling, broken links when shared, and canonicalization failures when different systems encode them differently.\n\n## Quick Reference\n\n- URL paths should contain only unreserved characters: A-Z, a-z, 0-9, `-`, `_`, `.`, `~`\n- Spaces must be encoded as `%20` (not `+`, which is query-string syntax)\n- Characters like `#`, `?`, `&`, `=` have reserved meaning in URLs and must be percent-encoded in path segments\n- Non-ASCII characters (accented letters, CJK) should be percent-encoded in URLs, though modern browsers decode them for display\n\n## Check\n\nScan all crawled URL paths for characters outside `[A-Za-z0-9\\-_.\/~]`. Flag URLs containing spaces (`%20` or literal), special symbols (`#`, `?`, `&`, `=`, `+` in paths), or unencoded non-ASCII characters. Check if different encodings of the same URL return separate 200 responses.\n\n## Fix\n\nUpdate the URL generation logic in your CMS or framework to strip or replace special characters. Replace spaces with hyphens. Percent-encode any reserved characters that must appear in paths. Set up redirects from problematic old URLs to clean new slugs.\n\n## Explain\n\nExplain the difference between reserved and unreserved characters in RFC 3986, how browsers and crawlers handle inconsistent percent-encoding, and why special characters in paths create duplicate content risks.\n\n## Code Review\n\nReview metadata generation, rendered HTML, structured data, and response headers related to URL Special Characters. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/seo\/special-chars\n","use_cases":["Audit URLs for special characters causing crawl errors or canonicalization issues.","Fix URLs with spaces, symbols, or unencoded non-ASCII characters.","Ensure consistent URL encoding across CMS-generated URLs and user-generated slugs."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/special-chars\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T05:42:46.000000Z","updated_at":"2026-11-24T07:12:32.000000Z","seo_title":"Fix URL Special Characters for SEO","seo_description":"Fix URL special characters to avoid crawl errors and canonicalization issues. Learn how to audit and clean URLs for SEO.","seo_keywords":["fix url special characters","seo url encoding","canonicalization issues","crawl errors url","url path encoding"]}}