【问题标题】:Customizing site url using Hybris使用 Hybris 自定义网站 url
【发布时间】:2019-05-19 06:54:57
【问题描述】:

我正在使用 Hybris 5.7,我想自定义我的网站 localhost URL。

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

所需网址:https://localhost:9001/

谢谢

【问题讨论】:

标签: hybris


【解决方案1】:

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

你会看到类似的东西

mystorefront.webroot=/mystorefront
storefrontContextRoot=/mystorefront

删除/mystorefront,这样就可以了

mystorefront.webroot=
storefrontContextRoot=

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

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

改成

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

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

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

完成更改后,执行ant clean all 并启动您的服务器。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-11-16
    • 2014-07-28
    • 1970-01-01
    • 2021-03-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多