How to change the site uid in hybris - sap-commerce-cloud

I am trying to change my site uid(mangou-uk to mg-uk) in hybris. I changed in hmc but getting 400 error when I click on homepage category links and also in some other pages. What are the steps to follow to change site uid in hybris. Can anyone help me on this please.

Have you also changed the below properties in your local.properties file?
media.mangou-uk.http=http://localhost:9001/
media.mangou-uk.https=https://localhost:9002/
website.mangou-uk.http=http://localhost:9001/
website.mangou-uk.https=https://localhost:9002/
If you change your site uid from mangou-uk to mg-uk then you would also need to amend these properties accordingly, e.g.:
media.mg-uk.http=http://localhost:9001/
media.mg-uk.https=https://localhost:9002/
website.mg-uk.http=http://localhost:9001/
website.mg-uk.https=https://localhost:9002/
(the URL's might be different of course depending on your environment)

Have you restarted Hybris ? Usually this is cached in your session by the DefaultUrlEncoderFacade so most likely a restart would be enough.
Or try to delete and recreate the storeFront url Encoding Attribute from the HMC if you can't restart.

Did you also adjust the "URL Patterns" accordingly in the hmc?
It's under WCMS -> Websites in the hmc. For your website you will have to adjust the URL Patterns (in the Configuration section) . At least you have to do that in case you use the ?site=SITEID parameter approach.

Changed the site uid in hmc.
Changed the base store uid in hmc against the each website.
Changed the properties as suggested by #Alexey
Now its working fine.

Related

Location of configuration for dashboard URL

I'm trying to log in to the Orchard Dashboard, but in the instance I'm working with, it has been configured so as to not show the log in link to the bottom, like the default theme does.
I've tried a bunch of URLs, including OrchardLocal/Admin and I get a 404. Is there a specific place to change the default URL for security purposes ?
I've tried looking in various XML files that have DetailsRouteOrchard nodes in them, but I have not found the URL for the dashboard.
Any ideas ?
Thanks.
Change the Project URL (like http://localhost:30321/OrchardLocal) in Web under Project properties and created new virtual directory.
Source : Orchard Dashboard is missing

Inherit look from rootsite

I'm trying to get my subsites to inherit the look I configured (under site settings > look and feel > change the look) on the rootsite. How do I do this? Thanks in advance!
I'm using Office365 (Sharepoint online).
Generally, according to the article below, the subsites will inherit the theme from the parent site. Here is the article link:
look and feel inheritance
By the way, may I know whether your subsite is from another template? If so, please follow the instruction below:
1) Since the link of Master page setting is hidden, you can change the URL to the setting page by two steps.
Copy your site URL and remove the target of URL after the default URL. See the example below:
Root URL : https://XXX.sharepoint.com/SitePages/Home.aspx
Change to : https://XXX.sharepoint.com/
Add the ‘_layouts/15/ChangeSiteMasterPage.aspx’ behind the URL from step a. See the example below:
Root URL: https://XXX.sharepoint.com/
Change to : https://XXX.sharepoint.com/_layouts/15/ChangeSiteMasterPage.aspx
Note: if you get the error message, please go to check the publishing featureon Team Site.
Per my test, you need to enable SharePoint Server Publishing feature if the subsite is not a publishing site.
Then when changing the look of rootsite, the look of subsite will get changed too.

Using a Web Site Document with an XPage - how to setup correctly?

I have set up a small XPage and have until now used the full path to the Xpage for testing, i.e.
http://devsrv1.magerman.ch/Development/Schulungen/Schulungen1_0/Schulungen_(1_0)_Dev.nsf/HomeWithDataView.xsp
I then tried to apply a Web Site Document
But the links are no longer currently functioning. I have the feeling that I'm missing something pretty basic, and am unsure as to what the best practice is. I'm quite happy with having the original request to the hostname resolve to a full path, i.e.
input
schulungen.magerman.com
and have it resolve to
schulungen.magerman.com//Development/Schulungen/Schulungen1_0/Schulungen_(1_0)_Dev.nsf
but haven't found a way to do this elegantly.
At the moment, my relative links '/OtherXpage.xsp' fail as they try to get to schulungen.magerman.com/OtherXpage.xsp
Any pointers?
Create a Web Site Rule. You can create it from your Web Site document in edit mode with action button " Web Site ... / Create Rule".
You can find a description how to fill the fields here.
The problem is usually that you need to add a trailing slash to the hostname
http://www.xpagedeveloper.com/2013/quicktip-get-right-path-when-autolaunching-an-xpage

ModX - main resources for different contexts

I started using ModX yesterday. Prepared my multilingual website using this tutorial: http://www.multilingual-modx.com/blog/2011/multilingual-websites-with-modx-and-babel.html.
Everything works perfectly. I have two contexts: web (domain.com - English) and nl (domain.nl - Dutch). I translated main resource for nl context as well as other resources.
I faced only one problem: why domain.com returns error 404? It works perfectly for domain.nl/index but cannot make it working for domain.nl.
Any suggestions?
Edit
Just noticed, that Wayfinder is generating domain.nl/index URL for translation of main resource. Weird.
You need to set up site_start variable under Context Settings tab. You need to provide an ID of the existing and published resource.
Please follow this link for more informations.
The tutorial you linked mentions only the parameters site_url and cultureKey to be set for every context. You should also set http_host to domain.com/domain.nl and site_start to the id of your desired "home resource" for each context in the context settings.
You can probably fit this description from the modX manual to your needs.
(although it is for running a multilingual page with different subdomains).

Drupal url alias and views and clear urls for taxonomy issues

I am using views module. I have created blocks using views and a url using page display. This is for taxonomy. So my views url looks like this "news/science" So if someone click on the link he should be taken to www.example.com/news/science. However i am taken to a unstyled page with broken links. But when i try to use the url www.example.com?q=news/science i am taken to a proper page with correct data.
The issue is only with taxonomy related terms.
i.e all urls www.example.com/news/technology , www.example.com/news/sports appear broken and unstyled however if i manually visit www.example.com?q=news/technology and www.example.com?q=news/sports i am taken to a proper page.
Can anyone suggest what could be the reason.
The same issues is with admin login and logout. If i use www.example.com?q=user and try to login i can login. Also if i use www.example.com?q=logout i can logout. But if i use clean url aliases ie. www.example.com/logout then i am taken to access denied page.
Do you have the Path module enabled? Thats the module responsible for mapping ?q=logout to /logout.
See here: http://drupal.org/handbook/modules/path
Have you changed anything in .htaccess? any mod-rewrite changes that might be skipping over those particular urls?

Resources