1

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

Current URL is: https://localhost:9001/storefront

Desired URL : https://localhost:9001/

Thanks

sbattou
  • 319
  • 3
  • 18
Lcoder_001
  • 153
  • 4
  • 14

1 Answers1

2

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

you will see something like

mystorefront.webroot=/mystorefront
storefrontContextRoot=/mystorefront

Remove /mystorefront, so it will be

mystorefront.webroot=
storefrontContextRoot=

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

Change this to

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

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

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

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

HybrisHelp
  • 5,518
  • 2
  • 27
  • 65