Now when I go to https://localhost:9002/
it opens hac (hybris admin console).
When I go to https://powertools.local:9002/nystorefront/powertools/en/USD/cart
I can reach my storefront.
I want to reach mystore
when I go to localhost:9002
.
What should I do?
I will assume your web extension name is mystorefront.
Add these into your config/local.properties
Also make sure that the urlPatterns associated with your CMSSite allow you to access your storefront via: https://localhost:9002/
You can also find this properties and additional information in your mystorefront/project.properties. As already mentioned there, "If you want to change these values then it is suggested that you override both of them in your config/local.properties file rather than changing the value here".
You have to configure webroot and storefrontContextRoot in local.properties file.
1) Add properties to your config/local.properties, change
mystorefront
(mystorefront.webroot) with your storefront name. Also, need to change hac webroot to/hac
2) To open your site without passing query parameter(?site=mysite), run the below Impex. Change
mysite
with your CMSSite name. This will also resolve your error(Cannot find CMSSite associated with current URL).