Skip to Content

multi country url

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Aug 02, 2018 at 01:45 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 02, 2018 at 03:02 AM

    Thanks for your quick response.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 25, 2018 at 04:31 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 01, 2018 at 07:28 PM

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

    and add language in the urlencodingAttributes on the site

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.