
Migrating SEO URLs to use the default catalog
Before you begin
About this task
The migration script takes the URL keywords that currently map to your store master catalog and then maps the keywords to the default catalog. The migration script changes the catalog Id in the TOKENVALUE field of the SEOURL table to an empty string for your store. The empty string in the TOKENVALUE field indicates to WebSphere Commerce to retrieve the default catalog from the STOREDEFCAT table. This migration script calls an Ant task that loads the configuration files and the XSL template files. The Ant task then applies the transformations, and saves the data to the required database tables. Error conditions are written to standard output. With the URLs migrated, shoppers that visit your store are forwarded to the default catalog, not the store master catalog, unless another catalog is specified.
Adding the default catalog function to your site does not cause any performance issues. It adds only a single SOA service that is called by the RuntimeServletFilter. This default catalog service retrieves the default catalog information from the STOREDEFCAT database table and an internal cache eliminates database reads with every service request. This cache can be shared across a clustered environment and when the default catalog updates, this cache is invalidated.
To run the migration script, perform the following steps:
Procedure
- Stop the WebSphere Commerce Server.
log on as the WebSphere Commerce non-root user.
- Run the default catalog migration utility. Ensure that
you specify the Id for the store you want to migrate, or an argument
to migrate all of your stores.