Manage hostnames - NiceUrl problem Options
tim
Posted: Wednesday, November 14, 2007 9:54:45 AM

Rank: Addict

Joined: 2/19/2007
Posts: 819
Location: Belgium
Hi,

I'm working an a site, the site contains a dutch and a french version. But it has only 1 domain. So to set the languages I thought I could use "dummy" domains ( domains that don't exist). This works but the problem is that the library method NiceUrl outputs that dummy domain.

The dummy domain trick worked on a site in v3.0.2.

I have set umbracoUseDirectoryUrls to true in web.config ( for flat urls ).

Project needs to go live this evening so any help is very welcome.

Greetings,
Tim

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
tim
Posted: Wednesday, November 14, 2007 10:14:51 AM

Rank: Addict

Joined: 2/19/2007
Posts: 819
Location: Belgium
with umbracoUseDirectoryUrls to false, it's still the same problem

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
tim
Posted: Wednesday, November 14, 2007 11:56:04 AM

Rank: Addict

Joined: 2/19/2007
Posts: 819
Location: Belgium
I wrote some custom translation code for now, but this can be a serious issue, especially when upgrading to v3.0.3

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
mortenbock
Posted: Thursday, November 15, 2007 11:26:58 AM

Rank: Addict

Joined: 7/19/2006
Posts: 811
Location: Århus, Denmark
Did you edit the config/umbracoSettings.config file to not use domain names in links?

On line 46:
<useDomainPrefixes>true</useDomainPrefixes>

Try setting that to false...

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

tim
Posted: Thursday, November 15, 2007 11:28:43 AM

Rank: Addict

Joined: 2/19/2007
Posts: 819
Location: Belgium
Yup, that did the trick ( thanks to Casey )

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
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.