Managing URL aliases
The administration has three places for addresses: the URL aliases tab of a node, Setup > URL translator for global aliases, and Setup > URL wildcards.
Aliases of a node
Open the node and its URL aliases tab, or content/urlalias/<node id> (policy content/edit on the node). The page lists the generated aliases (one per language, read-only) and the custom aliases, and creates new custom ones:
- New URL alias: the address, without the host and without a leading slash. Characters that are not allowed are changed by the transformation rules.
- Language: the alias answers in siteaccesses that show this language. With site.ini [RegionalSettings] ShowUntranslatedObjects=enabled every translation language is offered, even ones the object does not exist in.
- Place alias on the site root: by default the alias is placed below the address of the node's parent; checked, it starts at the top level (/autumn instead of /campaigns/autumn).
- Alias should redirect to its destination: checked, visitors get a 301 redirect to the node's main address; unchecked, the node is shown under the alias.
An alias answers in other languages when the object is marked always available. Select custom aliases and click Remove selected, or Remove all, to remove them.
Global aliases
Setup > URL translator (/content/urltranslator) gives a module view, or another alias, an address of your choosing, for example login for user/login. With Alias should redirect to its destination checked (the default) visitors get a 301 redirect; unchecked, the destination is shown under the alias. The page also imports, exports and undoes URL maps, and lists the redirects.
Setup > URL translator (/content/urltranslator): create a global URL alias for a module view or another alias; Import, Export, Import history and Redirects handle URL maps.
Wildcards
Setup > URL wildcards (/content/urlwildcards) sends a group of addresses elsewhere with one rule: each * in the pattern matches any text, and {1}, {2} in the destination put it back (news/* to articles/{1}). Wildcards are used only when no alias matches, in the order they were created. Try an address shows which wildcard an address matches and where it ends up, without changing anything.
Setup > URL wildcards (/content/urlwildcards): one rule sends a group of addresses elsewhere; Try an address shows where an address ends up.
Limits
- Generated aliases and history entries cannot be edited or removed in the administration; rename or move the object instead.
- An address can belong to one alias per language only; the page refuses one that is taken and says where it points.
Related pages
- Links, URL aliases, wildcards and search statistics: every field, message and button
Contributors
- Julia Shymova
- Gunnstein Lye Maintainer
- Geir Arne Waaler Maintainer
- Andrea Melo Maintainer
- Graham Brookins Updated Maintainer
Comments
Add a comment