DEV Community

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

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.

GitHub logo patarapolw / seo-friendly-slugify

Create SEO-friendly URL from any string, by stripping certain words, replacing punctuations, and shortening the string. Also works with Unicode characters.

Top comments (3)

Collapse
 
digitalinfoways profile image
Digital Infoways

Thanks for sharing informative content. You can take advice or ask for help from some SEO experts also.

Collapse
 
gamerseo profile image
Gamerseo • Edited

Really great post

Collapse
 
simondodson profile image
SIMON DODSON

God bless thank you