Create up to 500 alias for URLs generated by a B2C Commerce pipeline.
Use the "/" character to create pipeline aliases with multiple path elements, such as
customer/account or consumers/cart. In the New Alias field, enter for
example, consumers/cart for the Cart-Show pipeline, which results
in …/us/consumers/cart if this pipeline is called and the locale
mapping for the chosen locale is us.
You can't use reserved keywords for pipeline aliases.
dw, _dw,
h, _h, n, _n,
and s.
B2C Commerce reserves s for site-path mapping. Don't use
s as a pipeline alias or as the first path element in a URL, such as
www.my-host.com/s/brand/blue.
See Configuring SEO URLs.
URLs created for the Search-Show pipeline without a category ID and
search refinements are supported for search refinement URLs, for example
search/abrand/blue. This functionality is also available for the
Search-ShowContent pipeline, for example
searchcontent/history.
Exclude the pipeline alias Search-Show (or
Search-ShowContent) from the URL path when no category (or folder)
ID is available. This enables you to create URLs such as
www.my-host.com/brand/black|blue/ instead of
www.my-host.com/search/brand/black|blue/.
-
Click App Launcher
, and then select .
If you see the Search Support Preferences page instead of the URL Rules page General tab, select , to enable the URL Rules module. - Click the Pipeline URLs tab.
-
Enable Append Trailing Slash to Pipeline URLs if you want
the trailing slash to appear when an alias is provided with a slash.
Configure this whether an automatic redirect occurs or not. The trailing slash and automatic redirect is disabled by default.
- Enable Perform automatic redirect if you want to automatically redirect requests to the desired trailing slash configuration.
-
On Pipeline URLs tab, select a locale from the Locale list.
The list shows all of the locales configured in . Make sure that if you create aliases for a locale, that these aliases are also selected for the site in .
When you have selected a locale, all of the aliases you create are used for that locale. See SEO URLs Settings Tab.
If an incoming URL includes a locale that Salesforce B2C Commerce can't identify, such as
de_DE, then Salesforce B2C Commerce uses the localedeif it exists, and thedefaultlocale if it does not. Any pipeline aliases created prior to Release 14.8 are treated as aliases for thedefaultlocale. - Enter the pipeline-subpipeline or the pipeline alias that you want to create in the Alias or Pipeline fields, to make sure the alias that you want to create doesn't exist.
-
Enter a term to represent the pipeline in the URL into the New Alias field. For
example, if you want the URL
hostnamealias/s/sitename/Home-Showto appear ashostnamealias/s/sitename/home, enter home. - Enter the pipeline-subpipeline that you want to create an alias for into the resolves to field. For example, Home-Show.
- Click Apply.