Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,155 of 9,155 pages
About the help in other languages
All help pages

URL aliases and nice URLs

How Exponential makes readable addresses from content names - the URLTranslator settings, word separators, transformation groups, length limits, custom aliases per node, rebuilding aliases and linking correctly in…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/creators/website-creators/url-aliases-and-nice-urls.md

On this page

URL aliases and nice URLs

This page is for website creators who care how addresses look. Every node gets a URL alias made from the names of its path: the article "Opening hours" in the folder "About us" is at /About-us/Opening-hours. The internal address /content/view/full/<node> keeps working but should never appear in links.

Contents

  1. How aliases are made
  2. The settings
  3. Custom aliases for one node
  4. Linking in templates
  5. Rebuilding aliases
  6. Checklist

How aliases are made

  • From the object's name, or from the class's URL alias name pattern when it has one (Content classes for websites).
  • Characters are transformed by the transformation group; words are joined by the word separator.
  • Each translation has its own alias in its language.
  • When a node is renamed or moved, the new alias is made and the old one stays as a redirect to it (Redirects and moved content).

The settings

site.ini [URLTranslator]:

KeyShippedMeaning
Translationenabledaddresses are resolved by aliases
WordSeparatordashdash, underscore or space
TransformationGroupurlaliasurlalias (ASCII), urlalias_iri (keeps accents and other letters), urlalias_compat (old style)
ScriptFallbackTransformationGroupurlalias_irifor a title the transformation leaves without a letter (Arabic, Chinese, Thai and other scripts without a transliteration table under urlalias); empty turns it off (10. Titles in scripts without a transliteration table)
UrlAliasNameLimit255the limit per path element; 0 disables it
LoadOnPartialAliasPath/what an incomplete alias path loads
DecodeOnce, TrailingCleanupdisabledtwo optional address cleanups (8. Decoding and cleaning addresses)

Decide TransformationGroup before launch: for a site in German or French, urlalias_iri keeps Über-uns readable; urlalias makes it Uber-uns. Changing it later only affects objects when they are published again or the aliases are rebuilt.

Custom aliases for one node

The node's URL aliases tab adds more aliases to the node (a short campaign address, an old address from a previous site). Global aliases for module views and wildcards for patterns are in Setup > URL translator and Setup > URL wildcards (URL wildcards and custom aliases).

The Locations tab of an article: the places in the tree where it appears, each with its own address
The Locations tab of an article: the places in the tree where it appears, each with its own address
The URL aliases of one item: the generated address and the form to add a custom alias in a language
The URL aliases of one item: the generated address and the form to add a custom alias in a language

Linking in templates

<a href={$node.url_alias|ezurl}>{$node.name|wash}</a>

ezurl adds the siteaccess path when the siteaccess is in the address and escapes the result; it is written without quotes in an attribute. |ezurl( , 'full' ) gives the full address with host, for mail and feeds. In PHP, eZURI::build() gives the same (For developers).

Rebuilding aliases

After an import, a change of TransformationGroup or a repair, rebuild every alias:

php bin/php/updateniceurls.php --allow-root-user

On large sites this takes a while; run it outside busy hours, with a backup. Then clear the urlalias cache.

Checklist

  • To do: The transformation group chosen for the site's languages.
  • To do: Folder and article names make good addresses (short, no dates unless wanted).
  • To do: Templates link with url_alias|ezurl, never content/view/full/....
  • To do: Campaign addresses made as aliases, not as new pages.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x