Search-friendly URLs are a shorter form of the section of the standard Salesforce B2C Commerce URL after the host name. For SEO purposes, it's important to adjust the URL settings to create search-friendly URLs across your site. The standard B2C Commerce URL is not optimized for external search engines. Instead, it includes instance, pipeline, and other information.
External search engines generally assign lower ranking to lengthy URLs with multiple directory layers and parameters or refuse to crawl them entirely. Search-friendly URLs are human-readable and shorter than standard B2C Commerce URLs, and are ranked better by search engines in organic search results.
Search-friendly URLs are generated based on a pattern that you supply. If you don't supply a pattern, B2C Commerce provides a default pattern. In addition to supplying the pattern for the URL, you can further customize your URLs using custom pipelines.
For information about the order in which B2C Commerce uses page-specific, category, and default URLs, see How B2C Commerce Assigns Page URLs.
You can use Business Manager to set default values and enter unique attributes as appropriate for high priority pages and content. Avoid using meaningless numbers such as product IDs. Page-specific URLs override the default URLs. For example, if you want to have a category whose default URL shows as "Navigation Systems" instead show as "GPS systems" in the URL, you can specify it in the category attributes and this overrides the default URL.
For your sitemap to include search-friendly URLs, you must enable them before creating your sitemap. Salesforce recommends that you enable search-friendly URLs for your Production instance but not your Staging instance, because it makes it difficult to add content asset links based on URLs you want to link to.
See Enabling Search-Friendly URLs.
${pageURL||displayName}.
This uses the Page URL and
Display Name attributes to construct the default URL. If you want to create a custom
URL, supported category attributes include pageURL, pageTitle, ID, and
displayName.${pageURL||name}.
This uses the Page URL and product
Name attributes to construct the default URL. If you want to create a custom URL,
supported product attributes are pageURL, pageTitle, productID, name, brand, and
shortDescription.${pageURL||name}.
This uses the Page URL and
content Name attributes to construct the default URL. If you want
to create a custom URL, supported content attributes are pageURL,
pageTitle, ID and name.%20,+, _, -, .
.For information on other customizations, including alternative encodings for search-friendly URLs, see URL Syntax.
B2C Commerce performs an
automatic redirect for out-dated URLs (for example, for changed marketing
text) from long URLs on/demandware.store/...
to
SearchFriendlyURLs, as shown in the following example:
/on/demandware.store/[...]/default/Search-Show?cgid=electronics
Is redirecting to
/Electronics/electronics,default,sc.html
Example: Search-Friendly URLs
The following URLs are taken from the SiteGenesis application. You can see these specific URLs by looking at the storefront for the Reference Application when search-friendly URLs are disabled and enabled.
Standard B2C Commerce URLs with search-friendly URLs disabled:
http://www.mystore.com/on/demandware.store/Sites-SiteGenesis-Site/default/Search-Show?cgid=K
http://www.mystore.com/on/demandware.store/Sites-SiteGenesis-Site/default/Product-Show?pid=S1989916&cgid=K
http://www.mystore.com/on/demandware.store/Sites-SiteGenesis-Site/default/Page-Show?cid=SHIPPING_POLICY
Standard B2C Commerce URLs with search-friendly URLs enabled:
http://www.mystore.com/Audio/K,default,sc.html
http://www.mystore.com/Bose%203-2-1%20GS%20Home%20Entertainment%20System
%20-%20DVD%20surround%20system%20-%20radio%20/%20DVD%20-%20silver/S1989916,default,pd.html
http://www.mystore.com/SHIPPING_POLICY/SHIPPING_POLICY,default,pg.html