Guides
Short, practical guides to URL slugs, WordPress permalinks, Chinese URLs, naming styles, slugify code and redirects.
What Is a URL Slug? 7 SEO Rules for Better URLsSlugs vs URLs vs permalinks, and seven rules for slugs that last.Read guide · 4 min read
Slugify Regex and Code SnippetsA six-step recipe and tested slugify() functions for JS/TS, Python, PHP, Go and SQL.Read guide · 3 min read
URL Slug Length Best PracticesWhat the official sources say about slug length, how to shorten slugs and when to keep stop words.Read guide · 7 min read
How to Transliterate Slugs for Multilingual SitesAccents, German umlauts, Cyrillic, Greek and Chinese pinyin, compared with Django and WordPress output.Read guide · 6 min read
How to Change URLs in Bulk with 301 RedirectsSeven steps from the old URL list to tested Apache, Nginx or Cloudflare 301 rules.Read guide · 7 min read
WordPress Permalinks and Slugs: Best PracticesSix permalink settings, how WordPress builds slugs, Chinese titles and safe slug changes.Read guide · 7 min read
Chinese URL Slugs: Pinyin, Chinese Characters or English?Pinyin vs Chinese characters vs English slugs, with encoded lengths and polyphone pitfalls.Read guide · 7 min read
kebab-case vs snake_case vs camelCase in URLs and Codekebab-case, snake_case, camelCase and more: where each belongs, plus acronyms and code.Read guide · 6 min read