User profile url ?

Is there any way to make the url to a users profile shorter, maybe groups also?

domain.com/username

domain.com/groups/name