If things look a little dusty around here, it's because I'm away on a mission for two years. I'll be back in August 2012, but in the mean time feel free to fork my projects on github.
[Drupal] Make user profile URLs readable
May 27, 2009
by Jared

Here's a tip for making you're community site that much more user friendly:

change this:

http://example.com/user/5275

to this:

http://example.com/users/joe-shmo

Much better, right?

To accomplish this, we will make use of the excellent Pathauto module, which, among other things, allows us to alias user profile urls.

Once pathauto is installed and enabled, go to admin/build/path/pathauto (admin/settings/pathauto in drupal 5), and select **"

System Message: WARNING/2 (<string>, line 15); backlink

Inline strong start-string without end-string.
file:///tmp/URL%20aliases%20%7C%20YAAlumni%20Test%20Page.jpg

Bulk generate aliases for users that are not aliased"** under the "user path settings" dropdown.

System Message: ERROR/3 (<string>, line 21)

Error in "image" directive: no content permitted.

.. image:: /media/images/URL%20aliases%20%7C%20YAAlumni%20Test%20Page-1.jpg

 This will create the aliases for all your current users (future users will be aliased as they are registered).

Save the configuration, and you're all set!

blog comments powered by Disqus