Loading
Salesforce now sends email only from verified domains. Read More
Get Started with B2C Commerce
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Create External URL Redirects

          Create External URL Redirects

          B2C Commerce's site alias configuration doesn't allow for external URL redirects. The solution is to build a custom pipeline that sends the configured hostname to the redirectpermanent template. This extension shows how to build such a custom pipeline.

          Required Editions

          Available in: B2C Commerce

          To specify the main deferred hostname, define an attribute called HTTPhostname that is managed in Business Manager. This specifies at a site level what the main HTTP and HTTPS hostname is.

          1. Configure HTTP and HTTPS host name in B2C Commerce.
          2. In the Your Shop Here site lookup SEO settings. The default SEO pattern generates links with the host name. However, to restrict the customer to view the preferred host name, you must specify the host name here. This forces this host name to appear the next time the customer clicks a site link.
          3. Create a custom pipeline RedirectAlias-Start.
          4. Create a Start node.
          5. Create an Assign node.
          6. Add the following value to the From 0 property: http:// + dw.system.Site.current.httpHostName
          7. Create an interaction node with the current/redirect template from the SiteGenesis application. This is a redirect permanent template.
          8. Set up the wrong site alias to call RedirectAlias-Start.
           
          Loading
          Salesforce Help | Article