A 301 redirect is the HTTP status code for a permanent URL redirection that also passes page ranking power to the redirected page. In most instances, a 301 redirect is the best method for implementing redirects in your storefront.
Salesforce B2C Commerce handles requests for URLs that have changed by determining whether the URL is an SEO URL and if the URL matches the expected SEO URL for the product. If the URL has changed, B2C Commerce automatically creates a 301 redirect, which preserves page rankings for products and content, even if their properties change.
Out-dated storefront URL mappings are handled as follows:
To avoid duplicate content, the automatic HTTP 301 redirect handling for search refinement URLs redirects out-dated URL mappings to the current URL mapping, for the following cases:
/shoes/?prefn1=color&prefv1=blue
redirects to
/blue/shoes/
./blue/abrand/shoes/
redirects to /abrand/blue/shoes/
./second-refinement|first-refinement/electronics/
redirects to
/first-refinement|second-refinement/electronics/
./abrand/blue/shoes/
redirects to
/abrand/constant/blue/shoes/
.Search-Show
pipeline alias but
is configured to be excluded, for example,
/abrand/blue/search/
redirects to
/abrand/blue/
.