Now the client wants a new much smaller and simpler site running off a different domain e.g http://www.newdomain.com
However they want to be able to share some content between the two. So a cms user would enter umbraco, change content and that content would show up in both sites.
Whats the best way to do this? My feelings are to create a new folder in the www.maindomain.com/umbraco called "newdomain". Create a new master page, templates and CSS for the new domain alonside the existing ones. Then its easy for me to pick up content from other sections of the tree in the newdomain section of the site.
I could then add a new host header to the original site for www.newdomain.com. The only downside is that the newdomain site would actually be under www.newdomain.com/newdomain. www.newdomain.com on its own would just show the homepage of the original site.
I thought of writing some code on the homepage to parse the domain and redirect it to www.newdomain.com/newdomain if its www.newdomain.com but this all seems very messy and has some SEO implications too.
Any ideas on this? Is Umbraco /base any good for this type of thing? Will it let me keep both sites separate but I can inject content from one site into another?
You can actually make two content trees in your current umbraco installation, the content tree would look something like this:
Content - maindomain -- Home -- etc. - newdomain -- Home -- etc.
When you right-click maindomain or newdomain, you can choose "manage hostnames" and bind the correct hostnames to them.
In IIS just add all of the hostnames to your current website, Umbraco will figure out where to go.
The only "problem" that you might run into is that you might want some extra/different templates on the second site, but most of the time that's not a very big problem.
2 domains to one site
Hello,
I have a bit of a weird one here. I have a working umbraco instance at a site e.g. http://www.maindomain.com. I have set up host headers in IIS so http://maindomain.com, http://maindomain.co.uk and http://www,maindomain.co.uk all point at this web site in IIS.
Now the client wants a new much smaller and simpler site running off a different domain e.g http://www.newdomain.com
However they want to be able to share some content between the two. So a cms user would enter umbraco, change content and that content would show up in both sites.
Whats the best way to do this? My feelings are to create a new folder in the www.maindomain.com/umbraco called "newdomain". Create a new master page, templates and CSS for the new domain alonside the existing ones. Then its easy for me to pick up content from other sections of the tree in the newdomain section of the site.
I could then add a new host header to the original site for www.newdomain.com. The only downside is that the newdomain site would actually be under www.newdomain.com/newdomain. www.newdomain.com on its own would just show the homepage of the original site.
I thought of writing some code on the homepage to parse the domain and redirect it to www.newdomain.com/newdomain if its www.newdomain.com but this all seems very messy and has some SEO implications too.
Any ideas on this? Is Umbraco /base any good for this type of thing? Will it let me keep both sites separate but I can inject content from one site into another?
Thanks
Rich
You can actually make two content trees in your current umbraco installation, the content tree would look something like this:
Content
- maindomain
-- Home
-- etc.
- newdomain
-- Home
-- etc.
When you right-click maindomain or newdomain, you can choose "manage hostnames" and bind the correct hostnames to them.
In IIS just add all of the hostnames to your current website, Umbraco will figure out where to go.
The only "problem" that you might run into is that you might want some extra/different templates on the second site, but most of the time that's not a very big problem.
Thanks Sebastiaan. I think that should be perfect.
is working on a reply...