Pathauto - Module

Pathauto is a great module that generates URL path settings automatically for you.

With Pathauto, Drupal will create the URL alias for you.

Your first step is to download the module at:

​Ensure you have the correct release for your module and install the module via standard installation procedures.

When you are installing Pathauto, you will see that the token module is required.  If you do not have the token module installed, you will need to install it before you can install path auto.  Another required module is a core module, Path.  This module comes packaged with Drupal core.

Check the box and click save configuration on the modules page to activiate the Pathauto module.

With the module activated, click the configure link on the modules page or navigate to: admin/config/search/path/patterns

The red arrow will take you to the configure page for Pathauto.

The configuration page will default on the patterns tab.  On the patterns tab, you will see Content Paths.  Each of content type has a content path.  You can create a unique URL alias for each content type if you want.    If you do not create a pattern for a specific content type, the default path pattern will be used.

This is the default setting for Pathauto.

To create a pattern, Drupal provides tokens for you to use.  To see the available tokens, click the Browse available tokens link.

The red arrow show the token link and the box displays all the available tokens.  Each group of tokens has lots of sub tokens to explore!

Creating a pattern is all about personal customization.  You create a pattern that works for your site.  Below is a primer with examples on pattern creation

What to display Pattern Resulting URL
Author +Unix Date [node:author] [current-date:raw] garycoleman/1644559361
Random Number + Name of the site [random:number][site:name] 33895LearnTheBlueDrop
Node Title  [node:title] pathauto-module

By far the most popular Pathauto that is used involves the node:title.

In addition to creating Pathautos for content URL, you can create them for taxonomies and user paths.

Pathauto can be used for taxonomies and user paths.