After upgrading an umbraco website from v4.9 to v4.11.8 i had some issues when managing hostnames for multilingual website.
Let say i have to change the Hostname for a particular website lang FR to mywebsite.dev.local/fr and EN to mywebsite.dev.local/en on the development website, this works well if we navigate on the local servers but if the client needs to access the website from his place we create an alias like mywebsite.dev.ehost.com/fr which works well until he has to click on any links on the website which gives him this url instead mywebsite.dev.local/fr/anylinks.
Therefore here the client no longer has access to the website. This used to work before the upgrade, is there something i can do to prevent this ?
- host "mywebsite.dev.local/fr" lang FR - host "mywebsite.dev.ehost.com/fr" lang FR
And when you browse to "mywebsite.dev.ehost.com/fr"all the links point to "mywebsite.dev.local/fr" - right? Ie the menu should contain "mywebsite.dev.ehost.com/fr/about-us" but actually contains "mywebsite.dev.local/fr/about-us" - right?
Definitively not normal. Quick fix would be to disable absolute urls (use domain prefix...). Though I'd like to figure out what's going on. Do you have some macro caching enabled?
We use this address until the website goes live. For security purpose we create a virtual directory of the instance so client can access the development website under our local servers.
And yes we they browse to "mywebsite.dev.ehost.com/fr"all the links point to "mywebsite.dev.local/fr" where they no longer has access.
Let me try to disable the absolute Urls and get back to you.
If you only have the "mywebsite.dev.local/fr" host configured, then when you browse with any other host the absolute urls will indeed use the configured host. That's by design. One way to avoid that is either to disable the absolute urls, or to also configure the ehost domain on the same node.
Managed Hostnames after upgrading to v4.11
Hi everyone,
After upgrading an umbraco website from v4.9 to v4.11.8 i had some issues when managing hostnames for multilingual website.
Let say i have to change the Hostname for a particular website lang FR to mywebsite.dev.local/fr and EN to mywebsite.dev.local/en on the development website, this works well if we navigate on the local servers but if the client needs to access the website from his place we create an alias like mywebsite.dev.ehost.com/fr which works well until he has to click on any links on the website which gives him this url instead mywebsite.dev.local/fr/anylinks.
Therefore here the client no longer has access to the website. This used to work before the upgrade, is there something i can do to prevent this ?
//fuji
So you have, on the same node:
- host "mywebsite.dev.local/fr" lang FR
- host "mywebsite.dev.ehost.com/fr" lang FR
And when you browse to "mywebsite.dev.ehost.com/fr"all the links point to "mywebsite.dev.local/fr" - right? Ie the menu should contain "mywebsite.dev.ehost.com/fr/about-us" but actually contains "mywebsite.dev.local/fr/about-us" - right?
Definitively not normal. Quick fix would be to disable absolute urls (use domain prefix...). Though I'd like to figure out what's going on. Do you have some macro caching enabled?
Hi Stephen,
On the Homenode FR i only have this
- host "mywebsite.dev.local.fr" lang FR
We use this address until the website goes live. For security purpose we create a virtual directory of the instance so client can access the development website under our local servers.
And yes we they browse to "mywebsite.dev.ehost.com/fr"all the links point to "mywebsite.dev.local/fr" where they no longer has access.
Let me try to disable the absolute Urls and get back to you.
Nope this didnt work.Diasbling the DomainPrefix
If you only have the "mywebsite.dev.local/fr" host configured, then when you browse with any other host the absolute urls will indeed use the configured host. That's by design. One way to avoid that is either to disable the absolute urls, or to also configure the ehost domain on the same node.
Can you try configuring the second host?
Ok this seems to be working when enabling the domainPrefixes
and using 2 domain host name
-- mywebsite.dev.local/fr
-- mywebsite.dev.ehost.com/fr
is working on a reply...