URL Rules for SEO

To increase site traffic, optimize your B2C Commerce site URLs for external search engines, such as Google or Yahoo. If you’re creating a site, URL Rules are automatically enabled and you can configure them if you have permissions to the URL Rules module. Salesforce recommends configuring and testing URL Rules on a Sandbox before exporting them to Staging and replicating them to Production.

The maximum length of a storefront URL is 1800 characters. URLs that exceed this length are shortened, but are still valid and unique. In particular, product and content URLs still contain the product or content ID.

The maximum length of a URI plus query parameters request is 2002 characters. If the request exceeds this limit, the page returns a 404 error.

Several settings apply across all URL types. These include localization, capitalization, and space encoding in URLs.

Optimize your site URLs in the following ways:

  • URLs shouldn't contain a page type indicator or a proprietary extension “sc.html”
  • Keep URLs short and meaningful
  • URLs shouldn't contain demandware

Configuration in Business Manager

When you have enabled SEO URLs, you can configure them. Click App Launcher App Launcher, and then select Merchant Tools | Site | SEO & Discoverability | URL Rules for:

Also resolve conflicts and configure general settings, and Review the archive.

Permissions

The URL Rules module has a modular permission. Set it to make the module visible in Business Manager. See Configuring Storefront URL Preferences.

Import and Export

URL rules import and export as part of the Site import/export module Site URLs item. Export the URL file as part of the existing Site URLs unit.

Replication

Replicate the URL rules using the following replication tasks:

Configuration Replication Task
Category URLs Site > Category URLs
Folder URLs Site > Folder URLs
Pipeline URLs Site > Pipeline URLs
URL rules Site > Site URL Rules (or part of existing URL replication group)