cancel
Showing results for 
Search instead for 
Did you mean: 

Change store URL

norbert_kajcsa2
Discoverer
0 Kudos
1,399

Hi guys,

I am having trouble changing the URL for my store ( version 1811 , b2b_acc recipe )

I want to be able to access the powertools store using the following link : https://powertools.local:9002/powertools

What I did :

1) change the local properties

 website.powertools.http=http\://powertools.local:9001/powertools 
 website.powertools.https=https\://powertools.local:9002/powertools 
 
 yb2bacceleratorstorefront.webroot= 
 storefrontContextRoot= 
 hac.webroot=/hac

Did an ant clean all , the settings are in the server xml ( context root is empty ) , updated the hosts file ( powertools.local is added ) .

2) Update the URL pattern for the store :

  (?i)^https?://[^/]+(/[^?]*)? 

When I try accessing the store I get 404 directly. There are no errors or warning in the logs

Can someone please point out what I am doing wrong ?

Thank you

/Norbert

Accepted Solutions (1)

Accepted Solutions (1)

arvind-kumar_avinash
Active Contributor
0 Kudos

As you have mentioned in the question, I am assuming you have setup Powertools website using b2b_acc or b2c_b2b_acc recipe, able to access it using https://powertools.local:9002/yb2bacceleratorstorefront (and not performed any customization yet), please perform the following steps:

a. Update the extensioninfo.xml of yacceleratorstorefront as follows:

 <webmodule jspcompile="false" webroot="/powertools"/>

b. Add the following configurations at the end of local.properties file:

 yb2bacceleratorstorefront.webroot=/powertools
 storefrontContextRoot=/powertools
 website.powertools.http=http://powertools.local:9001/powertools
 website.powertools.https=https://powertools.local:9002/powertools

c. Go to backoffice > WCMS > Website > WCMS COCKPIT PROPERTIES > Update the value of WCMS Cockpit Preview URL to /powertools/?site=powertools > Click SAVE

d. Shutdown the server and perform ant clean all updatesystem -Dtenant=master

e. Start the server and access https://powertools.local:9002/powertools

Note: although I have made it work as per your requirement, IMHO, one should create a custom storefront following the steps mentioned at https://help.hybris.com/1811/hcd/8acc8a5a86691014a20781b3f738213e.html

norbert_kajcsa2
Discoverer
0 Kudos

Hi , thanks for the fast reply.

I did all the modifications you suggested but the result is the same 404.

arvind-kumar_avinash
Active Contributor
0 Kudos

Hi - yesterday, I was too busy and I could not test it. Today, I tested it and found it to be working. I have also updated my answer with one more step that I had not mentioned yesterday. Please try it and let me know in case you face any issue.

norbert_kajcsa2
Discoverer
0 Kudos

Hi

Thank you for the help. We managed to get it work on Friday afternoon ( forgot to update here ). It was actually the regex : (?i)^https?://powertools[^/]+(|/.|\\?.)

After adding this regex we were able to access the store. Step a) was not needed in our case.

Thanks again for the help.

arvind-kumar_avinash
Active Contributor
0 Kudos

You are most welcome.

Answers (0)