cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate Url's or multiple Homepage Urls in Hybris

former_member814859
Discoverer
0 Kudos

Hi Experts
I am able to access my Homepage or loginpage by using two urls lets say
1.localhost:9002/us/siteId/en/USD
2.localhost:9002/us
my requirement is to disable the 2 url which should not access the site can you please let me know how to achieve this .
in local.peoperties file i can see the webroot and webiste are configured as even i tried to modify by replacing /us with /us/siteId/en/USD but page is breaking
xyzstorefront.webroot=/us

website.siteId.https=https\://localhost\:9002/us

website.siteId.http=http\://localhost\:9001/us
View Entire Topic
former_member634058
Active Participant
0 Kudos

Hi Sandeep,

The list of matching urls are available in the base site. If you navigate to base site in backoffice, you will find the list of url patterns for which your site will load. En and usd are encoding attributes for language and currency, and the setting is there in the base site.

The SiteMatchingFilter makes use of these values to load the website in question, based on the request url.

The property you have mentioned is used elsewhere, for example, in case for payment you need a url to redirect, or in case of emails, you need your website url. In thise cases, the base url is picked up from those properties.


Thanks.

former_member814859
Discoverer
0 Kudos

Hi Sumit
thanks for quick response
Any idea where url patterns are validated with our request .I mean in which class

former_member634058
Active Participant
0 Kudos

Check the CMSSiteFilter and UrlEncoderFilter.

Thanks.