To make pretty URL's from article titles I am using a simple function. However lately I an concerned about the ideal length of these "slugs". It is said that too many dashes are bad.
However some article titles can be long and a too long URL may not be liked by google. Of course that defeats th whole idea of having URL slugs.
So does anyone have any idea how long a URL slug should be. Should there be a limit on the "dash" charecters used?
If you really want to be economic with URL space, I'd remove articles (the, a, an etc.) more aggressively than prepositions and verbs since removed articles don't change the semantics of the sentence that much.
e.g.
What is the ideal length of an URL slug
remove articles
What is ideal length of URL slug
remove "What is"
ideal length of URL slug
normalization
ideal-length-of-url-slug
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With