Multiple sites on single umbraco install Options
azzlack
Posted: Tuesday, February 05, 2008 10:44:58 AM

Rank: Devotee

Joined: 8/5/2007
Posts: 94
Location: Bergen, Norway
I have tried (without success) to make multiple sites on my umbraco installation.

I have changed the umbracoSettings.config useDomainPrefixes to false, but it still does not want to work.

My site structure is as follows:

- Content
- Home [en.eyecatch.no] (English version of the site)
- Hjem [no.eyecatch.no] (Norwegian version of the site)
- Homepage [home.eyecatch.no] (My wife's homepage using a lot of the same templates)
- Bergen [bergen.eyecatch.no] (A testing page)

I have tried to assign the correct hostnames to the nodes, but to no avail.

What happens is that when I try to access the site using en.eyecatch.no or any of the other ones, it does find anything.

What I have done now to make the site work, is to assign www.eyecatch.no to the 'Home' node.

Do I have to change something in ISS to make it work?

Regards,
Ove Andersen




www.eyecatch.no
azzlack
Posted: Tuesday, February 05, 2008 10:55:05 AM

Rank: Devotee

Joined: 8/5/2007
Posts: 94
Location: Bergen, Norway
Sorry.

Here is a better view of the site structure:



www.eyecatch.no
mortenbock
Posted: Tuesday, February 05, 2008 12:46:39 PM

Rank: Addict

Joined: 7/19/2006
Posts: 791
Location: Århus, Denmark
It seems that you have not set up the domains in the IIS. As far as I can tell, the are pointing to some virtual directory...

You need to set up the domains to point to your umbraco site in the IIS

Morten Bock - Level 2 certified - MVP 2008/2009 - My danish blog with a few english posts

azzlack
Posted: Wednesday, February 06, 2008 8:34:59 AM

Rank: Devotee

Joined: 8/5/2007
Posts: 94
Location: Bergen, Norway
You mean that every adress listet above has to point to www.eyecatch.no?

www.eyecatch.no
mortenbock
Posted: Wednesday, February 06, 2008 9:13:16 AM

Rank: Addict

Joined: 7/19/2006
Posts: 791
Location: Århus, Denmark
Which server are you using(xp/2003/vista)?

I'm no server admin, but I think what you need to do is to only have _one_ website created in IIS for your umbraco site. In the IIS admin, rightclick your site at select "Properties".

On the "Website" tab, click the "Advanced" button.

Here you can add multiple "host header values" to the same website, and you just add all the domains you need in you umbraco install.

Morten Bock - Level 2 certified - MVP 2008/2009 - My danish blog with a few english posts

azzlack
Posted: Wednesday, February 06, 2008 11:07:17 AM

Rank: Devotee

Joined: 8/5/2007
Posts: 94
Location: Bergen, Norway
I dont have my own server, im using a webhosting company.
But they can probably set it up for me as you explained above.

I noticed that all the addresses listed above points to their own folder.

www.eyecatch.no -> \www
en.eyecatch.no -> \subdomener\en
no.eyecatch.no -> \subdomener\no

and so forth...

www.eyecatch.no
mortenbock
Posted: Wednesday, February 06, 2008 11:19:56 AM

Rank: Addict

Joined: 7/19/2006
Posts: 791
Location: Århus, Denmark
Ok, that makes sense then.

See if you can get the hosting company to point the to the same folder:

www.eyecatch.no -> \www
en.eyecatch.no -> \www
no.eyecatch.no -> \www

Note: Also remember to ask them to set up the domains to use the same app pool so that you don't run in to caching trouble later on.

Morten Bock - Level 2 certified - MVP 2008/2009 - My danish blog with a few english posts

azzlack
Posted: Thursday, February 07, 2008 4:21:18 PM

Rank: Devotee

Joined: 8/5/2007
Posts: 94
Location: Bergen, Norway
Now it works!

Thank you for your help Morten!

However, I still have one question.

How can I detect the browser language?
How can I make links which keeps the selected language by cookie?

The idea is to find the browser/os language and redirect to the correct subdomain based on this information. If no information can be found, it defaults to english.

When the user is on the site, he can select the language again by clicking on some flags somewhere.


Regards,
Ove Andersen



www.eyecatch.no
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.