In addition to the host entry, be sure to add the appropriate regular expression for your site.
A CMS site has the urlPatterns attribute. This is a list of regular expressions that match the website's CMS filters to determine which storefront the user is trying to access.
The easiest way is to add another regular expression to the CMS site, as shown below:
(?i)^https?://[^/]*/yacceleratorstorefront((?![\?\&]site=).)*
At run time, you can do this in the Hybris Management Console (hMC). Click the WCMS tab on the Site Properties tab and change the URL Patterns section.
To make the change permanent, add the appropriate code to the installation of the CMS site. ImpEx script is executed during the initialization phase of the project, for example. for electronics store
# CMS Site UPDATE CMSSite;uid[unique=true];urlPatterns; ;electronics;(?i)^https?:
user1929513
source share