I created a website using Umbraco which contains some product data. I added two host names for the same directoty and published with two different URL. ex: 1 www.xxx.com and another with www.xxx.co.in .
Based on the URL the client browses i need to display /hide data,
Can any one help me in achieving the above requirement?
Have you setup these two different hostnames on the same node?
If so then you need to make two seperate root node so you can have two separate sites in Umbraco. You can't assign different hostnames to the same node and then show/hide products depending on what site the user is visiting.
So make a structure like this
Site 1 (www.xxx.com) subpage subpage subpage etc. Site 2 (www.xxx.co.in) subpage subpage subpage etc.
Then you should also go to the umbracoSettings.config file in the config folder and set "useDomainPrefixes" to true. When this is done you may need to republish the entire site and restart the application for it to take effect.
The reasin you need to do this is because you want to make sure that the subpages for each node are unique even if the node name (used for creating the link) is called the same in the different sites.
Thanks for the Reply. The reason why i requested for the above changes is i want to create a "Universal Site" with multiple host names and need to show/hide any content to the client based on the URL.
If i able to achieve the above then i can run "n" number of sites on a same node by providing different host names
Hiding Data on Umbraco WebSite
Hi All,
I created a website using Umbraco which contains some product data. I added two host names for the same directoty and published with two different URL. ex: 1 www.xxx.com and another with www.xxx.co.in .
Based on the URL the client browses i need to display /hide data,
Can any one help me in achieving the above requirement?
Regards
Arun
Hi Arun
Have you setup these two different hostnames on the same node?
If so then you need to make two seperate root node so you can have two separate sites in Umbraco. You can't assign different hostnames to the same node and then show/hide products depending on what site the user is visiting.
So make a structure like this
Site 1 (www.xxx.com)
subpage
subpage
subpage
etc.
Site 2 (www.xxx.co.in)
subpage
subpage
subpage
etc.
Then you should also go to the umbracoSettings.config file in the config folder and set "useDomainPrefixes" to true. When this is done you may need to republish the entire site and restart the application for it to take effect.
The reasin you need to do this is because you want to make sure that the subpages for each node are unique even if the node name (used for creating the link) is called the same in the different sites.
I hope this helps :)
/Jan
Hi Jan,
Thanks for the Reply. The reason why i requested for the above changes is i want to create a "Universal Site" with multiple host names and need to show/hide any content to the client based on the URL.
If i able to achieve the above then i can run "n" number of sites on a same node by providing different host names
Regards
Arun
is working on a reply...