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