cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hello, Currently I have this url pattern to support multi country for B2c store front.. https://localhost:9002/en_GB/ I want URL like this -> https://localhost:9002/shop/en_GB/ So can u please tell me, how to do it? Thanks.

piyush_saraf
Explorer

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member630291
Participant
0 Likes

Hi,

In local.properties file, please add yourstorefront.webroot=/shop and perform ant clean all.

Also, in the URL pattern, change it either in ImpEx or in HMC or Backoffice.

This should work fine.

Former Member
0 Likes

Hi Piyush, did you do an ant clean all after setting xxxstorefront.webroot=shop ?

if not, please run an ant clean all and go to the following file platform -> tomcat -> conf -> server.xml and check if you can see <Context path="/shop" in this file. If you do, then your storefront is register under this path and you should be able to access it.

If not, then the path is not set up correctly. Give it a go.

VinayKumarS
Active Contributor
0 Likes

Hi Piyush,

Add entry in the local.properties.

 xxxstorefront.webroot=shop 


make sure that you change the website urls.. backoffice -> wcms -> website -> General tab. URL Patterns..

to reflect the same

piyush_saraf
Explorer
0 Likes

Hi ,

I tried this, but it's not working and getting below error...Do you have any idea about this?

INFO [localhost-startStop-2] [HybrisContextLoaderListener] Registered HttpSession timeout listener for '/shop' Aug 27, 2018 4:28:46 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter [XSSFilter] java.lang.IllegalArgumentException: unknow web root '/shop' cannot find any mapped extension at de.hybris.platform.util.Utilities.getExtensionForWebroot(Utilities.java:3040) at de.hybris.platform.servicelayer.web.DefaultXSSFilterConfig.(DefaultXSSFilterConfig.java:49) at de.hybris.platform.servicelayer.web.XSSFilter.init(XSSFilter.java:169) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4591) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

Former Member
0 Likes

: For example your storefront name is xxxstorefront.

go to local.properties file and add the following property xxxstorefront.webroot=shop
This will make your context root as /shop. Now go to backoffice and configure URL patterns so that when you type https://localhost:9002/shop/en_GB. your storefront gets loaded.

Ask a Question