3

Take a recent question:

https://stackoverflow.com/questions/6479771/properties-of-inner-exception-are-disposed

Instead of having an integer, if we base 36 encode the question ID we get 3uvtn, cutting the length of the integer by 2:

https://stackoverflow.com/questions/3UVTN/properties-of-inner-exception-are-disposed

The benefits seem a lot more worthwhile on smaller numbers:

http://www.example.com/forum/25352/my-friendly-url

to:

http://www.example.com/forum/JK8/my-friendly-url

This is more of a theoretical/curiosity question than one I'm seriously considering implementing. Thoughts?

1
  • Reddit already uses this type of encoding.
    – Kevin Reid
    Commented Jul 22, 2011 at 18:48

1 Answer 1

5

Shorter URLs don't have any benefit in achieving rankings in Google - if the URL is under 1024 characters you'll be fine - but it can have a big impact on the click-through rate from Google SERPs to your site. Especially now that URLs are shown directly below the page title in Google's search snippet.

So yes anything you can do to make your URL a wee bit shorter, but maintaining its human-readability, is a good thing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.