使用Hybris自定义网站网址 [英] Customizing site url using Hybris

查看:87
本文介绍了使用Hybris自定义网站网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm using Hybris 5.7 and I would like to customize my websites localhost URL.

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

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

谢谢

推荐答案

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

First, find webroot in your *storefront extension's local.properties file

您会看到类似的东西

mystorefront.webroot=/mystorefront
storefrontContextRoot=/mystorefront

删除/mystorefront,将其删除

mystorefront.webroot=
storefrontContextRoot=


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


Now, you have to correct website & media URLs similarly by removing /mystorefront. Search for the website & media in same project.properties. Please note, below mysite is the uid of CMSSite so it will be different in your case. you will see something like

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文件进行更改.

Make sure, you haven't declared the same properties in local.properties file, otherwise it's better to make changes to local.properties file.

完成更改后,请执行ant clean all并启动服务器.

Once you done with the changes, do ant clean all and start your server.

这篇关于使用Hybris自定义网站网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆