cancel
Showing results for 
Search instead for 
Did you mean: 

multi country url

former_member658721
Participant
0 Kudos

Hello,

Currently I have this url pattern to support multi country for B2c store front..

https://localhost:9002/b2c/US/en/

storefrontcontextroot defined as /b2c. How do remove b2c from the URL? I want to my url to support multi country without b2c part of url. I tried playing with URL pattern and it didn't work..

Thanks in advance.

Accepted Solutions (0)

Answers (4)

Answers (4)

thavasikumar
Discoverer
0 Kudos

Use the following: {customstorefront}.webroot=/shop storefrontContextRoot=/shop

and add language in the urlencodingAttributes on the site

piyush_saraf
Explorer
0 Kudos

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.

0 Kudos

Hi Piyush,

Can you tell me how do you customize URL pattern to en_GB? I have something similar to do. Please let me know the steps.

Thanks

Akash

former_member658721
Participant
0 Kudos

Thanks for your quick response.

former_member618655
Active Participant
0 Kudos

Hi SasiReddy

for example your storefront extension is xyzstorefront. Have a property in your local.properties file

 xyzstorefront.webroot=

make sure you keep the value as blank. Once you do, run an ant clean all, check the following file

platform/tomcat/conf/server.xml

and check if you see the following line

 <Context path="/" 

If you do, you are all set, just change the storefront URL pattern from backoffice and you are ready to go. Let me know if you need more help.

0 Kudos

adding in comment make sure "website node" in hmc contain your website url pattern. If you are not running multiple website in same tenant i will suggest use (?i)^https?://.*$.