How to change the site uid in hybris

2019-08-14 18:53发布

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.

标签: hybris
4条回答
2楼-- · 2019-08-14 19:16

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.

查看更多
霸刀☆藐视天下
3楼-- · 2019-08-14 19:18
  1. Changed the site uid in hmc.
  2. Changed the base store uid in hmc against the each website.
  3. Changed the properties as suggested by @Alexey

Now its working fine.

查看更多
姐就是有狂的资本
4楼-- · 2019-08-14 19:22

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)

查看更多
乱世女痞
5楼-- · 2019-08-14 19:26

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.

查看更多
登录 后发表回答