There are frequently requests for how to make certain patterns of URLs for Pathauto.
Basics of Patterns
In general, a pattern is a form of variable substitution. So, when you see the variable [title-raw]
in a pattern, that will be replaced with the title of the node. This system should hopefully be intuitive to most users. A blog post with the title "my blog post" whose pathauto pattern is [title-raw]
would be created with the alias www.example.com/my-blog-post
When the pattern for a node type is left blank when creating the node, the default pattern will be used. But if the default pattern is also blank, Pathauto will be disabled for that node type.
Each of the four content types -- node, user, taxonomy, and blog posts -- has its own list of variables that come by default (and are provided either by the Token module, which is a prerequisite for installing Pathauto, or by the Pathauto module itself). To look at the variables available for a given type, go to:
- For 7.x:Administration > Configuration > Search and metadata > URL aliases, in the "Patterns tab" (admin/config/search/path/patterns).
- For 6.x: Administer > Site Building > URL aliases, in the "Automated alias settings" tab.