Configuring Storefront URL Preferences

Use this page to enable SEO URL rules for a site.

  1. Select site > Merchant Tools > Site Preferences > Storefront URLs.
  2. Select Enable Storefront URLs.
  3. Select Copy Source URL Parameters.
    The setting will be used for URL redirect objects with the Copy Source URL Parameter value Default.
  4. Select Enforce HTTPS.

    This setting forces URL generation to use HTTPS protocol only. Incoming requests using HTTP are automatically redirected to HTTPS. You can't modify this setting for a site if the global preference Enforce HTTPS setting is enabled. See Enforce HTTPS for more information.

  5. Click Apply.
  6. After you have configured and tested your storefront URLs, investigate whether you need to change the following:
    Option Description
    code If you use the Salesforce B2C Commerce SEO Support module without custom code for SEO, no code changes are necessary to take advantage of this feature. If you have custom code or have additional integrations for SEO, you might need to alter your custom code to work with the feature.
    canonical links B2C Commerce best practice is to create canonical links for categories using the URLUtils method. If you used the URLUtils method, no changes to code are necessary. However, if you have hard-coded canonical links in your templates, you need to update them to use your new URLs.
    content links Check links in your content assets to ensure they don't need to be updated to reflect the new URLs. If you are using the content link functions, they don't need to be updated. However, if you have included hard-coded links in your content assets, these might need to be updated.
    URL redirects Check your URL redirects to ensure that your redirects do not need to be adjusted to your new URLs. This might be because the redirects are outdated or conflict with your new URLs.
    static mappings and mapping rules

    Check your URL mappings to make sure that your redirects don't need to be adjusted to your new URLs.

    Note: If your old URLs now match the new storefront URLs, a redirect is no longer necessary.
    product ID search Make sure that the product ID search works as you expect if customers enter the product ID as it appears in the URL.
    Sitemap Create a sitemap that includes the SEO URLs.
  7. To view SEO URLs:
    Option Description
    In Business Manager After you configure SEO URLs, B2C Commerce runs a job to generate the URLs. You can see the status of the job on the URL Rules page General tab.
    In the browser When the URLs are generated, you can view them in your browser. In your storefront, if you hover over a category link, you can see the URL in the status bar. If you click the link, you can see the URL at the top of the browser.
X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.