使用Hybris自定义网站网址

时间:2018-12-18 19:52:03

标签: hybris

我正在使用Hybris 5.7,我想自定义网站的本地主机URL。

当前网址为:https://localhost:9001/storefront

所需的URL:https://localhost:9001/

谢谢

1 个答案:

答案 0 :(得分:2)

首先,在您的webroot扩展程序的local.properties文件中找到*storefront

您会看到类似的东西

mystorefront.webroot=/mystorefront
storefrontContextRoot=/mystorefront

删除/mystorefront,就这样

mystorefront.webroot=
storefrontContextRoot=

现在,您必须通过删除/mystorefront来类似地更正网站和媒体URL。在相同的project.properties中搜索websitemedia。请注意,mysite以下是uid的{​​{1}},因此您的情况会有所不同。您会看到类似

CMSSite

将此更改为

website.mysite.http=http://localhost:9001/mystorefront
website.mysite.https=https://localhost:9001/mystorefront

media.mysite.http=http://localhost:9001/mystorefront
media.mysite.https=https://localhost:9001/mystorefront

请确保您没有在local.properties文件中声明相同的属性,否则最好对local.properties文件进行更改。

完成更改后,请执行website.mysite.http=http://localhost:9001 website.mysite.https=https://localhost:9001 media.mysite.http=http://localhost:9001 media.mysite.https=https://localhost:9001 并启动服务器。

相关问题