
Customizing the SEOURLMapper class for local stores
To handle additional redirects between the legacy URLs to your new SEO URLs, you must create an extended SEOURLMapper class.
Procedure
- Open your HCL Commerce Development environment.
- In the Enterprise Explorer view, expand the WebSphereCommerceServerExtensionLogic project.
- Right-click src, then click New > Package.
-
In the Name field, enter
com.mycompany.commerce.seo.url.helpers
, where mycompany is your company prefix. - Click Finish.
- Right-click the new package and then click .
-
In the Name field, type
ExtendedSEOURLMapperImpl
, and then click Finish. - Download and extract the following code_sample.zip file. Copy the contents of the ExtendedSEOURLMapperImpl.java file into the extended SEOURLMapper class that you created.