WebSphere Commerce Developer

Updating the server configuration file to use the custom SEOURLMapper class

The server configuration file must be updated to carry out an additional logic check for full URL redirects on the storefront.

Procedure

  1. In WebSphere Commerce Developer, go to the WC\xml\config directory.
  2. Open the wc-server.xml file for editing.
  3. Find the node named SEOConfiguration. Add the following code as a child node under the SEOConfiguration node:
    <mapper-class-name value="com.mycompany.commerce.seo.url.helpers.ExtendedSEOURLMapperImpl"/>
    Where mycompany is your company prefix. For instance:
    <SEOConfiguration defaultUrl="" dynamicUrl="true" enable="true">    
      <mapper-class-name value="com.mycompany.commerce.seo.url.helpers.ExtendedSEOURLMapperImpl"/>
    </SEOConfiguration>
  4. Save and close the file.
  5. Starting and stopping WebSphere Commerce

Results

You modified the web application to perform an extra logic to check for full URL redirects on the storefront.