I am trying to change my site uid(mangou-uk to mg-uk) in hybris. I changed in hmc but getting 400 error when I click on homepage category links and also in some other pages. What are the steps to follow to change site uid in hybris. Can anyone help me on this please.
问题:
回答1:
Have you also changed the below properties in your local.properties file?
media.mangou-uk.http=http://localhost:9001/
media.mangou-uk.https=https://localhost:9002/
website.mangou-uk.http=http://localhost:9001/
website.mangou-uk.https=https://localhost:9002/
If you change your site uid from mangou-uk
to mg-uk
then you would also need to amend these properties accordingly, e.g.:
media.mg-uk.http=http://localhost:9001/
media.mg-uk.https=https://localhost:9002/
website.mg-uk.http=http://localhost:9001/
website.mg-uk.https=https://localhost:9002/
(the URL's might be different of course depending on your environment)
回答2:
Have you restarted Hybris ? Usually this is cached in your session by the DefaultUrlEncoderFacade so most likely a restart would be enough.
Or try to delete and recreate the storeFront url Encoding Attribute from the HMC if you can't restart.
回答3:
Did you also adjust the "URL Patterns" accordingly in the hmc?
It's under WCMS
-> Websites
in the hmc. For your website you will have to adjust the URL Patterns (in the Configuration
section) . At least you have to do that in case you use the ?site=SITEID
parameter approach.
回答4:
- Changed the site uid in hmc.
- Changed the base store uid in hmc against the each website.
- Changed the properties as suggested by @Alexey
Now its working fine.