If the URL Rules module enabled in B2C Commerce, you can use the Page URL attribute to override the URL that is generated from the configuration in the URL Rules module. You can apply character replacement for URLs created with this override.
Note This topic assumes that you have enabled the URL Rules module. Include the Page URL
attribute in your rule syntax to allow for customizable endpoints.
To configure Salesforce B2C Commerce to use the Page URL attribute to override generated URLs:
- Click App Launcher
, and then select . - Click the Catalog URLs or Content URLs tab, depending on the type of URL you want to configure.
- Under the correct URL rule section, check Enable override with 'pageURL' attribute (if set).
- Import the appropriate values for the page URL attribute or navigate to the product in Business Manager and add a value to the Page URL field.
- Wait for the SEO URLs to regenerate. Monitor the status of the generation job on the URL Rules page General tab.
While you are developing a strategy for your URLs, it is recommended to manually
create Page URL attribute values to test them. Instead of using an
input feed, manually enter these in Business Manager.
To Create Category URLs Manually:
-
Click App Launcher
, and then select .
- Click Edit for the catalog that you want to create URLs for.
-
Click the Category Attributes tab and enter a value for each
of the
Search Engine Optimization Supportattributes. - Click Apply to apply the change.
To Create Product URLs Manually:
- Click App Launcher
, and then select . - Enter information to search for a product. Search using wildcards or a specific product ID.
- Click a product in the search results to select it.
- Click the Attributes tab and enter a value for each of the
Search Engine Optimization Supportattributes. - Click Apply to apply the change.
To Create Content URLs Manually:
- Click App Launcher
, and then select . - Click Library Folder and navigate until you click the content ID or Name to select the page.
- On the General tab and enter a value for each of the
Search Engine Optimization Supportattributes. - Click Apply to apply the change.