Pacharapol Withayasakpunt Pacharapol Withayasakpunt
Sun, January 26, 2020

How do I create an SEO-friendly URL?

In my understanding,

  • Create a human readable URL
  • Shorten the URL, like 60 words, including location.origin
  • Only - punctuation is preferred

Some questions remain unanswered, or unsureā€¦

  • Is unidecode necessary, especially for non-ASCII scripts, such as CJK or Thai?
  • Is extending with short strings problematic, such as with nanoid, just like in dev.to?

As a matter of fact, I have already create a package as per my need.

https://github.com/patarapolw/seo-friendly-slugify