You can configure the Commerce Cloud URL patterns to customize the URL structure of your store’s Collection and Product pages so they mirror your SEO strategies.
By default, Commerce Cloud uses the following URL patterns for Category and Product pages:
Collection page:
/{seoTitleDerived}/category/{id}
For example,
/cameras-and-camcorders/category/cameracat
Product page:
/{seoTitleDerived}/product/{id}
For example,
/striped-button-down/product/prod10001
Keep the following points in mind as you plan your URL patterns:
It is best to customize URL patterns when you are planning and testing your store. If you change a URL pattern on your production storefront, you must specify URL redirect for that pattern. Otherwise, older bookmarked URLs will display an error page instead of the pages you intended.
Each URL pattern must be a valid URL for the page type (Collection or Product) and must contain only components that are valid for the page type. For example, if you include the variable
{brand}
in the Collection pattern, you will not be able to save your changes because brand is not a collection property.Each URL pattern can contain up to 254 characters and cannot contain spaces or special characters except
.
(period),~
(tilde),_
(underscore) and–
(dash).If your store supports more than one language, Commerce Cloud automatically creates URL patterns for each supported language. Commerce Cloud uses your catalog translations for the variables values, but you must manually translate any words that are not variables. For example, in the default product page URL pattern, you must manually translate the word
product
. For more information, see Localize Your Store.
When planning URL patterns for your Commerce Cloud instance running multiple sites:
You do not have to create URL patterns for each individual site. URL patterns are global settings that apply to all your stores.
To customize URL patterns for your store:
Log into Commerce Cloud at the URL provided to you by Oracle. (See also Work with the Dashboard.)
Click the menu button and select Settings.
Select Setup from the Settings list and then click the URL patterns tab.
If your Commerce Cloud instance runs multiple sites, pick a site to configure from the list at the top of the settings list. See Run Multiple Stores from One Commerce Cloud Instance for more information.
Click the Collection Page URL.
Type the new pattern and click the Save icon when you are done.
Variables must be inside {} (curly braces, for example,
{id}
or{seoTitleDerived}
. For a list of variables for Collection Page URLs and Product Page URLs, see the tables that follow this procedure.(Optional) Check the Auto Redirect box so that shoppers who have bookmarked older URLs are automatically redirected to the new URL. Auto Redirect is selected by default.
Click the Product Page URL and repeat steps 4 – 6 to update the URL pattern for the product page.
The following table describes the available properties for Collection Page URL patterns. Each property displays the value of the corresponding collection property. For more information about collection properties, see Organize products in collections.
Collection Page URL Variable | Description |
---|---|
| The collection’s Name property. (A short, descriptive name that identifies the collection.) |
| The collection’s ID property. (The ID that identifies the collection internally.) |
| The collection’s Description property. (A short description to display with the collection.) |
| The display name of the collection’s current parent. |
| The collection’s Meta Description property. See Add metadata to products and collections for more information. |
| The collection’s Title Tag property. See Add metadata to products and collections for more information. |
| The collection’s URL Slug property. See Add metadata to products and collections for more information. |
The following table describes the available properties for Product Page URL patterns. Each variable displays the value of the corresponding product property. For more information about product properties, see Understand the base product type.
Product Page URL Variable | Description |
---|---|
| The product’s Name property. (A short, descriptive name that identifies the product.) |
| The product’s ID property. (The ID that identifies the product internally.) |
| The product’s Description property. (A short description to display with the product.) |
| The display name of the product’s current parent collection. |
| The name of the manufacturer. |
| The product type. If the product was created with the Base product type, this value is not displayed. See Create and edit product types for more information. |
| The product’s Meta Description property. See Add metadata to products and collections for more information. |
| The product’s Title Tag property. See Add metadata to products and collections for more information. |
| The product’s URL Slug property. See Add metadata to products and collections for more information. |